Sha256: fedf807f0f7f8008cc12040121f621e0e680efb3e4fd082755c749e9539ee0dc

Contents?: true

Size: 731 Bytes

Versions: 21

Compression:

Stored size: 731 Bytes

Contents

require 'rails_helper'

describe "budget_types/edit" do
  before(:each) do
    @budget_type = assign(:budget_type, stub_model(BudgetType,
      name: "MyString",
      display_name: "MyText",
      note: "MyText",
      position: 1
    ))
  end

  it "renders the edit budget_type form" do
    render

    # Run the generator again with the --webrat flag if you want to use webrat matchers
    assert_select "form", action: budget_types_path(@budget_type), method: "post" do
      assert_select "input#budget_type_name", name: "budget_type[name]"
      assert_select "textarea#budget_type_display_name", name: "budget_type[display_name]"
      assert_select "textarea#budget_type_note", name: "budget_type[note]"
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

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