Sha256: 8ce83c1a7dfec2317dac634100129b9713e01a9ceb5c537bcc964a4ad7b6d35f

Contents?: true

Size: 860 Bytes

Versions: 19

Compression:

Stored size: 860 Bytes

Contents

require 'rails_helper'

describe "checkout_types/new" do
  before(:each) do
    assign(:checkout_type, stub_model(CheckoutType,
                                      name: "MyString",
                                      display_name: "MyText",
                                      note: "MyText",
                                      position: 1
    ).as_new_record)
  end

  it "renders new checkout_type form" do
    render

    # Run the generator again with the --webrat flag if you want to use webrat matchers
    assert_select "form", action: checkout_types_path, method: "post" do
      assert_select "input#checkout_type_name", name: "checkout_type[name]"
      assert_select "textarea#checkout_type_display_name", name: "checkout_type[display_name]"
      assert_select "textarea#checkout_type_note", name: "checkout_type[note]"
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

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