Sha256: 27ee18c0e4a0c032b1126c1203bbbd573d252812a5ec75e4b4e510094368cb14

Contents?: true

Size: 781 Bytes

Versions: 8

Compression:

Stored size: 781 Bytes

Contents

require 'rails_helper'

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

  it "renders new 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, :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

8 entries across 8 versions & 1 rubygems

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