Sha256: 1ba2de5f8419f65def0a0c8610d61cef4ce467b7d8321ab31fd24fe7cd360443

Contents?: true

Size: 783 Bytes

Versions: 20

Compression:

Stored size: 783 Bytes

Contents

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

20 entries across 20 versions & 1 rubygems

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