Skip to content

Commit

Permalink
Merge pull request #46 from alphagov/fix-test-context
Browse files Browse the repository at this point in the history
Put test into context
  • Loading branch information
chao-xian committed Jan 16, 2017
2 parents 0d73355 + 9e32af6 commit 1c91d46
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions spec/controllers/content_items_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,11 @@
end

context "in descending order" do
end

it "returns content_items based on supplied params" do
get :index, params: { organisation_slug: organisation.slug, order: :desc, sort: :public_updated_at }
it "returns content_items based on supplied params" do
get :index, params: { organisation_slug: organisation.slug, order: :desc, sort: :public_updated_at }

expect(assigns(:content_items).pluck(:id)).to match_array([1, 2])
expect(assigns(:content_items).pluck(:id)).to match_array([1, 2])
end
end
end
end
Expand Down

0 comments on commit 1c91d46

Please sign in to comment.