spec/concerns/configurable_spec.rb in remote_db-0.0.7 vs spec/concerns/configurable_spec.rb in remote_db-0.0.8

- old
+ new

@@ -155,9 +155,19 @@ end expect(TestDb::Person.count).to eq(2) expect(TestDb::Person.first.first_name).to eq('John') expect(TestDb::Person.last.first_name).to eq('Bob') end + + it 'should not raise error and successfully create with hidden column' do + expect(TestDb::Person.count).to eq(1) + TestDb.without_readonly do + TestDb::Person.create(first_name: 'Alice', last_name: 'Smith') + end + expect(TestDb::Person.count).to eq(2) + expect(TestDb::Person.last.first_name).to eq('Alice') + end + end end end end end