search for: get_quot

Displaying 3 results from an estimated 3 matches for "get_quot".

Did you mean: get_quote
2007 Jan 16
2
Links in view specs
Hi I have this simple view (used by the Gap controller): <h1>Gap#index</h1> <%= link_to "Get a GAP quote", :action => "get_quote" %> And this spec: context "A rendered gap/index" do setup do render ''gap/index'' end specify "should have a link to the get_quote page" do response.should_have_tag ''a'', :attributes => { :href =&gt...
2007 Jun 26
4
Fake SSL in specs when using ssl_requirement plug-in
...line from the ssl_requirement plug-in at the start of a controller for SSL. Its implemented as redirects so I can spec this... describe "GET /gap/get_qote" do controller_name :gap it "should redirect to the HTTPS version of the action" do get ''get_quote'', :id => "finance" response.should redirect_to(''https://test.host/gap/get_quote/ finance'') end end ...with no problems. But I can''t figure out how to fake an SSL request in the spec setups so all my other specs are failing as the...
2006 Jan 28
4
Randomised variables from sql
I''ve spent some time converting my website from php to RoR, and so far, I''m loving every bit of Rails. However, I''ve stumbled across a problem. On my old page, I''ve had a random quote display at a specific location, and I''d like to replicate this with RoR. Basically, I thought I would be able to add all quotes into a specific table in the database,