Sha256: a5ed58a15c06db38b413218b02057020f3ee5672497984e4ef97dd5e12e1213c

Contents?: true

Size: 758 Bytes

Versions: 11

Compression:

Stored size: 758 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

11 entries across 9 versions & 2 rubygems

Version Path
enju_library-0.2.5 spec/views/budget_types/edit.html.erb_spec.rb
enju_library-0.2.4 spec/views/budget_types/edit.html.erb_spec.rb
enju_library-0.2.3 spec/views/budget_types/edit.html.erb_spec.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_library-0.2.2/spec/views/budget_types/edit.html.erb_spec.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/bundler/gems/enju_library-d36f415e177e/spec/views/budget_types/edit.html.erb_spec.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_library-0.2.1/spec/views/budget_types/edit.html.erb_spec.rb
enju_library-0.2.2 spec/views/budget_types/edit.html.erb_spec.rb
enju_library-0.2.1 spec/views/budget_types/edit.html.erb_spec.rb
enju_library-0.2.0 spec/views/budget_types/edit.html.erb_spec.rb
enju_library-0.2.0.beta.10 spec/views/budget_types/edit.html.erb_spec.rb
enju_library-0.2.0.beta.9 spec/views/budget_types/edit.html.erb_spec.rb