Skip to content

Commit

Permalink
Refactor test setup slightly
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanl committed Jun 20, 2013
1 parent 3ded3e0 commit cbb7e18
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions spec/searchlight/search_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -368,13 +368,13 @@ def search_bots; end
end
}

let(:search_instance) { search_class.new(bits: ' ', bats: nil, bots: false) }
let(:provided_options) { {bits: ' ', bats: nil, bots: false} }

it "only runs search methods that have real values to search on" do
search_instance.should_not_receive(:search_bits)
search_instance.should_not_receive(:search_bats)
search_instance.should_receive(:search_bots)
search_instance.send(:run)
search.should_not_receive(:search_bits)
search.should_not_receive(:search_bats)
search.should_receive(:search_bots)
search.send(:run)
end

end
Expand Down

0 comments on commit cbb7e18

Please sign in to comment.