Sha256: 902f9978d866c4b7ba7673b056041ce85796e8b10bed4d050c5bb7458b197f57

Contents?: true

Size: 784 Bytes

Versions: 8

Compression:

Stored size: 784 Bytes

Contents

require 'rails_helper'

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

  it "renders the edit 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(@checkout_type), :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

8 entries across 8 versions & 1 rubygems

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