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.2.0.beta.8 spec/views/budget_types/edit.html.erb_spec.rb
enju_library-0.2.0.beta.7 spec/views/budget_types/edit.html.erb_spec.rb
enju_library-0.2.0.beta.6 spec/views/budget_types/edit.html.erb_spec.rb
enju_library-0.2.0.beta.5 spec/views/budget_types/edit.html.erb_spec.rb
enju_library-0.2.0.beta.4 spec/views/budget_types/edit.html.erb_spec.rb
enju_library-0.2.0.beta.3 spec/views/budget_types/edit.html.erb_spec.rb
enju_library-0.2.0.beta.2 spec/views/budget_types/edit.html.erb_spec.rb
enju_library-0.2.0.beta.1 spec/views/budget_types/edit.html.erb_spec.rb
enju_library-0.1.2 spec/views/budget_types/edit.html.erb_spec.rb
enju_library-0.1.1 spec/views/budget_types/edit.html.erb_spec.rb
enju_library-0.1.0 spec/views/budget_types/edit.html.erb_spec.rb
enju_library-0.1.0.pre45 spec/views/budget_types/edit.html.erb_spec.rb
enju_library-0.1.0.pre44 spec/views/budget_types/edit.html.erb_spec.rb
enju_library-0.1.0.pre43 spec/views/budget_types/edit.html.erb_spec.rb
enju_library-0.1.0.pre42 spec/views/budget_types/edit.html.erb_spec.rb
enju_library-0.1.0.pre41 spec/views/budget_types/edit.html.erb_spec.rb
enju_library-0.1.0.pre40 spec/views/budget_types/edit.html.erb_spec.rb
enju_library-0.1.0.pre39 spec/views/budget_types/edit.html.erb_spec.rb
enju_library-0.1.0.pre38 spec/views/budget_types/edit.html.erb_spec.rb
enju_library-0.1.0.pre37 spec/views/budget_types/edit.html.erb_spec.rb