Sha256: 339ddc1996eaf2b0f45d1c0bcfbb543e33fcdb35a3bbf38f04bc3250285fe169
Contents?: true
Size: 883 Bytes
Versions: 10
Compression:
Stored size: 883 Bytes
Contents
require 'rails_helper' module Dorsale RSpec.describe "dorsale/addresses/edit", :type => :view do before(:each) do @address = assign(:address, Address.create!( :street => "MyString", :street_bis => "MyString", :city => "MyString", :zip => "MyString", :country => "MyString" )) end it "renders the edit address form" do render assert_select "form[action=?][method=?]", dorsale.address_path(@address), "post" do assert_select "input#address_street[name=?]", "address[street]" assert_select "input#address_street_bis[name=?]", "address[street_bis]" assert_select "input#address_city[name=?]", "address[city]" assert_select "input#address_zip[name=?]", "address[zip]" assert_select "input#address_country[name=?]", "address[country]" end end end end
Version data entries
10 entries across 10 versions & 1 rubygems