Sha256: 59dbb99dd0b7ed3b6478e587e7deeb22a5fd9488146d9c82a3eacc453963a9c3

Contents?: true

Size: 757 Bytes

Versions: 57

Compression:

Stored size: 757 Bytes

Contents

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

57 entries across 57 versions & 1 rubygems

Version Path
enju_library-0.1.0.pre16 spec/views/budget_types/edit.html.erb_spec.rb
enju_library-0.1.0.pre15 spec/views/budget_types/edit.html.erb_spec.rb
enju_library-0.1.0.pre14 spec/views/budget_types/edit.html.erb_spec.rb
enju_library-0.1.0.pre13 spec/views/budget_types/edit.html.erb_spec.rb
enju_library-0.1.0.pre12 spec/views/budget_types/edit.html.erb_spec.rb
enju_library-0.1.0.pre11 spec/views/budget_types/edit.html.erb_spec.rb
enju_library-0.1.0.pre10 spec/views/budget_types/edit.html.erb_spec.rb
enju_library-0.1.0.pre9 spec/views/budget_types/edit.html.erb_spec.rb
enju_library-0.1.0.pre8 spec/views/budget_types/edit.html.erb_spec.rb
enju_library-0.1.0.pre7 spec/views/budget_types/edit.html.erb_spec.rb
enju_library-0.1.0.pre6 spec/views/budget_types/edit.html.erb_spec.rb
enju_library-0.1.0.pre5 spec/views/budget_types/edit.html.erb_spec.rb
enju_library-0.1.0.pre4 spec/views/budget_types/edit.html.erb_spec.rb
enju_library-0.1.0.pre3 spec/views/budget_types/edit.html.erb_spec.rb
enju_library-0.1.0.pre2 spec/views/budget_types/edit.html.erb_spec.rb
enju_library-0.1.0.pre spec/views/budget_types/edit.html.erb_spec.rb
enju_library-0.0.2 spec/views/budget_types/edit.html.erb_spec.rb