Skip to content

Commit

Permalink
Fix spec.
Browse files Browse the repository at this point in the history
  • Loading branch information
René Sprotte committed May 17, 2016
1 parent e2f8cb0 commit 9baf80a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/metacrunch/db/reader_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
DB_URL = "#{DB_PROTOCOL}://#{File.join(asset_dir, "dummy.sqlite")}"

describe "#each" do
subject { Metacrunch::Db::Reader.new(DB_URL, "select * from users") }
subject { Metacrunch::Db::Reader.new(DB_URL, ->(db){db[:users].order(:id)}) }

context "when called without a block" do
it "returns an enumerator" do
Expand Down

0 comments on commit 9baf80a

Please sign in to comment.