Sha256: f37a802767ed46b1ee176ac15893a16d839822e734a19fc79b5f16171bda17e6
Contents?: true
Size: 1.06 KB
Versions: 19
Compression:
Stored size: 1.06 KB
Contents
require 'rails_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
19 entries across 19 versions & 1 rubygems