Sha256: e2035513c91e5360cdc00114168abe1c1bb1e0631b5d7746c31df2458be3a79b

Contents?: true

Size: 815 Bytes

Versions: 18

Compression:

Stored size: 815 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
    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

18 entries across 18 versions & 1 rubygems

Version Path
enju_circulation-0.1.2 spec/views/use_restrictions/show.html.erb_spec.rb
enju_circulation-0.1.1 spec/views/use_restrictions/show.html.erb_spec.rb
enju_circulation-0.1.0 spec/views/use_restrictions/show.html.erb_spec.rb
enju_circulation-0.1.0.pre49 spec/views/use_restrictions/show.html.erb_spec.rb
enju_circulation-0.1.0.pre48 spec/views/use_restrictions/show.html.erb_spec.rb
enju_circulation-0.1.0.pre47 spec/views/use_restrictions/show.html.erb_spec.rb
enju_circulation-0.1.0.pre46 spec/views/use_restrictions/show.html.erb_spec.rb
enju_circulation-0.1.0.pre45 spec/views/use_restrictions/show.html.erb_spec.rb
enju_circulation-0.1.0.pre44 spec/views/use_restrictions/show.html.erb_spec.rb
enju_circulation-0.1.0.pre43 spec/views/use_restrictions/show.html.erb_spec.rb
enju_circulation-0.1.0.pre42 spec/views/use_restrictions/show.html.erb_spec.rb
enju_circulation-0.1.0.pre41 spec/views/use_restrictions/show.html.erb_spec.rb
enju_circulation-0.1.0.pre40 spec/views/use_restrictions/show.html.erb_spec.rb
enju_circulation-0.1.0.pre39 spec/views/use_restrictions/show.html.erb_spec.rb
enju_circulation-0.1.0.pre38 spec/views/use_restrictions/show.html.erb_spec.rb
enju_circulation-0.1.0.pre37 spec/views/use_restrictions/show.html.erb_spec.rb
enju_circulation-0.1.0.pre36 spec/views/use_restrictions/show.html.erb_spec.rb
enju_circulation-0.1.0.pre35 spec/views/use_restrictions/show.html.erb_spec.rb