Sha256: 06cdaa4a45d9667c1d512e15c6b92ab0f40420cc3fe6162b7ba61ab30a7460ca
Contents?: true
Size: 940 Bytes
Versions: 10
Compression:
Stored size: 940 Bytes
Contents
require 'rails_helper' module Dorsale RSpec.describe "dorsale/addresses/index", :type => :view do before(:each) do assign(:addresses, [ Address.create!( :street => "Street", :street_bis => "Street Bis", :city => "City", :zip => "Zip", :country => "Country" ), Address.create!( :street => "Street", :street_bis => "Street Bis", :city => "City", :zip => "Zip", :country => "Country" ) ]) end it "renders a list of addresses" do render assert_select "tr>td", :text => "Street".to_s, :count => 2 assert_select "tr>td", :text => "Street Bis".to_s, :count => 2 assert_select "tr>td", :text => "City".to_s, :count => 2 assert_select "tr>td", :text => "Zip".to_s, :count => 2 assert_select "tr>td", :text => "Country".to_s, :count => 2 end end end
Version data entries
10 entries across 10 versions & 1 rubygems