Sha256: d9b1e518486c83f8bef905e72ae53d7e670094a9085181767b022665bdf841d2

Contents?: true

Size: 885 Bytes

Versions: 8

Compression:

Stored size: 885 Bytes

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

8 entries across 8 versions & 1 rubygems

Version Path
enju_circulation-0.2.5 spec/views/use_restrictions/show.html.erb_spec.rb
enju_circulation-0.2.4 spec/views/use_restrictions/show.html.erb_spec.rb
enju_circulation-0.2.3 spec/views/use_restrictions/show.html.erb_spec.rb
enju_circulation-0.2.2 spec/views/use_restrictions/show.html.erb_spec.rb
enju_circulation-0.2.1 spec/views/use_restrictions/show.html.erb_spec.rb
enju_circulation-0.2.0 spec/views/use_restrictions/show.html.erb_spec.rb
enju_circulation-0.2.0.beta.4 spec/views/use_restrictions/show.html.erb_spec.rb
enju_circulation-0.2.0.beta.3 spec/views/use_restrictions/show.html.erb_spec.rb