Displaying 3 results from an estimated 3 matches for "site_pages".
Did you mean:
give_pages
2007 Sep 25
7
simple story, extract link
hi,
I just started fooling around with story runner, thought I''d start
with a dead simple scenario:
The first thing I do when describing a site to someone is go to the
home page, and begin exploring public pages from there.
So, that seems like a good first story to spec out.
And I''d really like to extract the actual link from the rendered page
(rather than just
2007 May 29
12
questions rspec on rails
Hi, rather than flooding this list with separate emails, I''ve been
queueing up questions using rspec with rails. (an irc channel would
be nice too :) Here ya go...
- Is there a way to test named routes?
- Could I get an example how to test an ajax request
(link_to_remote)? would that go in view? and/or in controller spec?
- Can you assert which layout template is rendered in a
2008 Aug 20
2
Re: Stubbing out ThinkingSphinx for Rspec
...erm,conditions|
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/...