Sha256: 08f519fcbbd742a1f356aacfb8cf8a5b47adc1f4555cbce602a0b4a8a41ad5ca
Contents?: true
Size: 430 Bytes
Versions: 57
Compression:
Stored size: 430 Bytes
Contents
require 'rails_helper' RSpec.describe "tests/new", type: :view do before(:each) do assign(:test, Test.new( :price => 1.5, :name => "MyText" )) end it "renders new test form" do render assert_select "form[action=?][method=?]", tests_path, "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