Sha256: 424eeead22dd7dadc49c031927ddf940381a97f458d82434073501343c352f06
Contents?: true
Size: 884 Bytes
Versions: 2
Compression:
Stored size: 884 Bytes
Contents
require 'spec_helper' describe "use_restrictions/show" do before(:each) do @use_restriction = assign(:use_restriction, stub_model(UseRestriction, :name => "Name", :display_name => "MyText", :note => "MyText", :position => 1 )) end it "renders attributes in <p>" do allow(view).to receive(:policy).and_return double(update?: true) render # Run the generator again with the --webrat flag if you want to use webrat matchers rendered.should match(/Name/) # Run the generator again with the --webrat flag if you want to use webrat matchers rendered.should match(/MyText/) # Run the generator again with the --webrat flag if you want to use webrat matchers rendered.should match(/MyText/) # Run the generator again with the --webrat flag if you want to use webrat matchers rendered.should match(/1/) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
enju_circulation-0.2.0.beta.2 | spec/views/use_restrictions/show.html.erb_spec.rb |
enju_circulation-0.2.0.beta.1 | spec/views/use_restrictions/show.html.erb_spec.rb |