search for: base_view_path

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

2008 Jan 31
4
RSpec-1.1.3
...s get loaded. Defaults to ''**/*_spec.rb'' * Exit with non-0 exit code if examples *or tests* (in test/unit interop mode) fail. Closes #203. * Moved at_exit hook to a method in Spec::Runner which only runs if specs get loaded. Closes #242. * Applied patch from kakutani ensuring that base_view_path gets cleared after each view example. Closes #235. * More tweaks to regexp step names * Fixed focused specs in nested ExampleGroups. Closes #225. More info at http://rspec.info. Cheers, David
2006 Feb 08
0
Publish to static pages
I need to "publish" pages to static files (in order to transfer to a server where Rails isn''t available, this is not for caching). When I do: require "open-uri" def publish File.open(publish_path, "w") do |file| open(base_view_path) { |res| file.write(res.read) } end end where publish() is a method on a model running in Rails (base_view_path is a method returning an URL to the page to publish but in "view mode"). The problem here seems to be that Webrick hangs... (I guess Webrick just can handle a reques...
2007 Aug 06
2
Specifying custom rails FormBuilders
I want to write a spec for a custom form builder, but I''m not really sure where it should live or how to include the right rspec_on_rails contexts. Ideally, I should be able to write a spec like: describe LabelledBuilder do it "should let me create a text field" do object = mock(object) object.stub!(:attribute).and_return("Test String") render