Sha256: ad8d8b6a581860330ad3b9bc12d5a186f2795f48bcc06af677412ed6b3f1e57d

Contents?: true

Size: 809 Bytes

Versions: 20

Compression:

Stored size: 809 Bytes

Contents

require 'spec_helper'

describe "use_restrictions/edit" do
  before(:each) do
    @use_restriction = assign(:use_restriction, stub_model(UseRestriction,
      :name => "MyString",
      :display_name => "MyText",
      :note => "MyText",
      :position => 1
    ))
  end

  it "renders the edit use_restriction form" do
    render

    # Run the generator again with the --webrat flag if you want to use webrat matchers
    assert_select "form", :action => use_restrictions_path(@use_restriction), :method => "post" do
      assert_select "input#use_restriction_name", :name => "use_restriction[name]"
      assert_select "textarea#use_restriction_display_name", :name => "use_restriction[display_name]"
      assert_select "textarea#use_restriction_note", :name => "use_restriction[note]"
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

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