Sha256: da3ee7dc3d9a99f805514c81ff86cb00b50927a6e67c51b78235d868efe0cfa7

Contents?: true

Size: 780 Bytes

Versions: 20

Compression:

Stored size: 780 Bytes

Contents

require 'spec_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

20 entries across 20 versions & 1 rubygems

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