Displaying 2 results from an estimated 2 matches for "sitepage".
Did you mean:
ptepage
2007 May 29
0
specs for ActionMailer
...tem was created</p>
<p>Class: <%= @item.class %><br />
Name: <%= @item.name %></p>
-----------------
spec/fixtures/admin_notify/itemcreated :
<p><b>AdminNotify#itemcreated</b></p>
<p>A new item was created</p>
<p>Class: SitePage<br />
Name: asdfasdf</p>
-----------------
spec/models/admin_notify_spec.rb :
require File.dirname(__FILE__) + ''/../spec_helper''
FIXTURES_PATH = File.dirname(__FILE__) + ''/../fixtures''
CHARSET = "utf-8"
include ActionMailer::Quoting
des...
2008 Aug 20
2
Re: Stubbing out ThinkingSphinx for Rspec
...s|
term.should eql(''*keyword*'')
conditions[:with][:searchable].should eql(1)
end
get :show, :search => ''keyword''
end
But I''m on the latest version of the plugin, and it looks like this;
# Controller action:
def index
@site_pages = SitePage.search params[:search]
end
# RSpec example:
it "should build query" do
ThinkingSphinx::Search.should_receive(:search) do ?
?
end
get :show, :search => ''keyword''
end
Any ideas?
http://groups.google.com/group/thinking-sphinx/browse_thread/thread/b879c24ecf0...