Sha256: 81bfa4023f57ce54ffb59f022324ce15d86bbfd65b448d1f99f1f8489d4951f3
Contents?: true
Size: 503 Bytes
Versions: 2
Compression:
Stored size: 503 Bytes
Contents
require "spec_helper" RSpec.describe JamJar do describe "#model" do subject { JamJar.model } specify { expect_it.to be < ActiveRecord::Base } specify { expect_it.to be_connected } context "with block" do subject { JamJar.model { def self.a; true; end } } specify { expect(subject.a).to be_truthy } end context "with columns" do subject { JamJar.model { column :foo, :string } } specify { expect(subject.new).to respond_to(:foo) } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jamjar-1.1.0 | spec/jamjar_spec.rb |
jamjar-1.0.0 | spec/jamjar_spec.rb |