Sha256: 5bc6d78c150b93023f357cac17f7f982fd28566c1228a63482f2638d8f4d9c54

Contents?: true

Size: 853 Bytes

Versions: 10

Compression:

Stored size: 853 Bytes

Contents

require 'rails_helper'

module Dorsale
  RSpec.describe "dorsale/addresses/new", :type => :view do
    before(:each) do
      assign(:address, Address.new(
        :street => "MyString",
        :street_bis => "MyString",
        :city => "MyString",
        :zip => "MyString",
        :country => "MyString"
      ))
    end

    it "renders new address form" do
      render

      assert_select "form[action=?][method=?]", dorsale.addresses_path, "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

Version Path
dorsale-1.1.4 spec/views/dorsale/addresses/new.html.slim_spec.rb
dorsale-1.1.3 spec/views/dorsale/addresses/new.html.slim_spec.rb
dorsale-1.1.2 spec/views/dorsale/addresses/new.html.slim_spec.rb
dorsale-1.1.1 spec/views/dorsale/addresses/new.html.slim_spec.rb
dorsale-1.1.0 spec/views/dorsale/addresses/new.html.slim_spec.rb
dorsale-1.0.4 spec/views/dorsale/addresses/new.html.slim_spec.rb
dorsale-1.0.3 spec/views/dorsale/addresses/new.html.slim_spec.rb
dorsale-1.0.2 spec/views/dorsale/addresses/new.html.slim_spec.rb
dorsale-1.0.1 spec/views/dorsale/addresses/new.html.slim_spec.rb
dorsale-1.0.0 spec/views/dorsale/addresses/new.html.slim_spec.rb