Sha256: faf1f141ae9bac227a14fbd7f65deea100e5d09bf97de9d001df3ea9411ede7c

Contents?: true

Size: 890 Bytes

Versions: 19

Compression:

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

19 entries across 19 versions & 1 rubygems

Version Path
enju_circulation-0.3.11 spec/views/use_restrictions/new.html.erb_spec.rb
enju_circulation-0.3.10 spec/views/use_restrictions/new.html.erb_spec.rb
enju_circulation-0.3.9 spec/views/use_restrictions/new.html.erb_spec.rb
enju_circulation-0.4.0.rc.1 spec/views/use_restrictions/new.html.erb_spec.rb
enju_circulation-0.3.8 spec/views/use_restrictions/new.html.erb_spec.rb
enju_circulation-0.3.7 spec/views/use_restrictions/new.html.erb_spec.rb
enju_circulation-0.4.0.beta.4 spec/views/use_restrictions/new.html.erb_spec.rb
enju_circulation-0.4.0.beta.3 spec/views/use_restrictions/new.html.erb_spec.rb
enju_circulation-0.3.6 spec/views/use_restrictions/new.html.erb_spec.rb
enju_circulation-0.4.0.beta.2 spec/views/use_restrictions/new.html.erb_spec.rb
enju_circulation-0.4.0.beta.1 spec/views/use_restrictions/new.html.erb_spec.rb
enju_circulation-0.3.5 spec/views/use_restrictions/new.html.erb_spec.rb
enju_circulation-0.3.4 spec/views/use_restrictions/new.html.erb_spec.rb
enju_circulation-0.3.3 spec/views/use_restrictions/new.html.erb_spec.rb
enju_circulation-0.3.2 spec/views/use_restrictions/new.html.erb_spec.rb
enju_circulation-0.3.1 spec/views/use_restrictions/new.html.erb_spec.rb
enju_circulation-0.3.0 spec/views/use_restrictions/new.html.erb_spec.rb
enju_circulation-0.3.0.rc.1 spec/views/use_restrictions/new.html.erb_spec.rb
enju_circulation-0.3.0.beta.1 spec/views/use_restrictions/new.html.erb_spec.rb