Sha256: 989bb07d579658263c983dff47dbd1f0593cd2f2a6e1443ec901b7a1ac383d85

Contents?: true

Size: 454 Bytes

Versions: 57

Compression:

Stored size: 454 Bytes

Contents

require 'rails_helper'

RSpec.describe "tests/edit", type: :view do
  before(:each) do
    @test = assign(:test, Test.create!(
      :price => 1.5,
      :name => "MyText"
    ))
  end

  it "renders the edit test form" do
    render

    assert_select "form[action=?][method=?]", test_path(@test), "post" do

      assert_select "input#test_price[name=?]", "test[price]"

      assert_select "textarea#test_name[name=?]", "test[name]"
    end
  end
end

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
wordjelly-auth-1.6.0 spec/dummy/spec/views/tests/edit.html.erb_spec.rb
wordjelly-auth-1.5.9 spec/dummy/spec/views/tests/edit.html.erb_spec.rb
wordjelly-auth-1.5.8 spec/dummy/spec/views/tests/edit.html.erb_spec.rb
wordjelly-auth-1.5.7 spec/dummy/spec/views/tests/edit.html.erb_spec.rb
wordjelly-auth-1.5.6 spec/dummy/spec/views/tests/edit.html.erb_spec.rb
wordjelly-auth-1.5.5 spec/dummy/spec/views/tests/edit.html.erb_spec.rb
wordjelly-auth-1.5.4 spec/dummy/spec/views/tests/edit.html.erb_spec.rb
wordjelly-auth-1.5.3 spec/dummy/spec/views/tests/edit.html.erb_spec.rb
wordjelly-auth-1.5.2 spec/dummy/spec/views/tests/edit.html.erb_spec.rb
wordjelly-auth-1.5.1 spec/dummy/spec/views/tests/edit.html.erb_spec.rb
wordjelly-auth-1.5.0 spec/dummy/spec/views/tests/edit.html.erb_spec.rb
wordjelly-auth-1.4.9 spec/dummy/spec/views/tests/edit.html.erb_spec.rb
wordjelly-auth-1.4.8 spec/dummy/spec/views/tests/edit.html.erb_spec.rb
wordjelly-auth-1.4.7 spec/dummy/spec/views/tests/edit.html.erb_spec.rb
wordjelly-auth-1.4.6 spec/dummy/spec/views/tests/edit.html.erb_spec.rb
wordjelly-auth-1.4.5 spec/dummy/spec/views/tests/edit.html.erb_spec.rb
wordjelly-auth-1.4.4 spec/dummy/spec/views/tests/edit.html.erb_spec.rb
wordjelly-auth-1.4.3 spec/dummy/spec/views/tests/edit.html.erb_spec.rb
wordjelly-auth-1.4.2 spec/dummy/spec/views/tests/edit.html.erb_spec.rb
wordjelly-auth-1.4.0 spec/dummy/spec/views/tests/edit.html.erb_spec.rb