Skip to content

Commit

Permalink
Fixing up tests to match recent scope fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
pat committed Sep 14, 2010
1 parent f0ef130 commit 90ab474
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion features/searching_across_models.feature
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Feature: Searching across multiple model
Given Sphinx is running
When I search for James
And I am retrieving the result count
Then I should get a value of 3
Then I should get a value of 6

Scenario: Confirming existance of a document id in a given index
Given Sphinx is running
Expand Down
5 changes: 2 additions & 3 deletions spec/thinking_sphinx/active_record/scopes_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,9 @@
search.by_foo('foo').search.options[:conditions].should == {:foo => 'foo', :name => 'foo'}
end

# FIXME: Probably the other way around is more logical? How to do this?
it "should apply the default scope options after other scope options to the underlying search object" do
it "should apply the default scope options before other scope options to the underlying search object" do
search = ThinkingSphinx::Search.new(:classes => [Alpha])
search.by_name('bar').search.options[:conditions].should == {:name => 'foo'}
search.by_name('bar').search.options[:conditions].should == {:name => 'bar'}
end
end

Expand Down

0 comments on commit 90ab474

Please sign in to comment.