make more specs work
This commit is contained in:
@@ -24,7 +24,7 @@ describe Suppliers::TablesController, type: :controller do
|
||||
describe "GET #show" do
|
||||
it "assigns the requested table to @table" do
|
||||
table = create :table, supplier: @supplier
|
||||
get :show, params: {id: table}, format: :json
|
||||
get :show, params: {id: table.id}, format: :json
|
||||
assigns(:table).should eq(table)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user