spec/jamjar_spec.rb in jamjar-1.1.0 vs spec/jamjar_spec.rb in jamjar-1.2.0

- old
+ new

@@ -15,8 +15,14 @@ context "with columns" do subject { JamJar.model { column :foo, :string } } specify { expect(subject.new).to respond_to(:foo) } + + context "with options" do + subject { JamJar.model { column :foo, :string, default: "bar" } } + + specify { expect(subject.new.foo).to eq "bar" } + end end end -end \ No newline at end of file +end