Sha256: 7e44664bfc14eb04757f6190bc7afcc54fe1c11b9137aa94813bccba2707ae45

Contents?: true

Size: 505 Bytes

Versions: 4

Compression:

Stored size: 505 Bytes

Contents

require 'spec_helper'

RSpec.describe "Nested Attribute", :type => :request do
	describe "datetime picker" do
		context 'when we have a schedule that belongs to a person' do
			let!(:person) { FactoryGirl.create(:person) }
			let!(:schedule) { FactoryGirl.create(:schedule, person: person) }
			it "generates the correct input fields to update the schedule" do
		  	visit edit_person_path(person)
		  	expect(page).to have_selector("input[name='person[schedules][apocalypse]']")
		  end
		end
	  
	end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
hot_date_rails-1.5.7 spec/requests/nested_attribute_spec.rb
hot_date_rails-1.5.6 spec/requests/nested_attribute_spec.rb
hot_date_rails-1.5.4 spec/requests/nested_attribute_spec.rb
hot_date_rails-1.5.3 spec/requests/nested_attribute_spec.rb