Sha256: 750cd2a5fd46c01cfb585df11ee40b620fba66e800f55e71e80dbd0d4f127d54
Contents?: true
Size: 498 Bytes
Versions: 7
Compression:
Stored size: 498 Bytes
Contents
require 'spec_helper' describe Virtus::ClassMethods, '.attributes' do let(:described_class) do Class.new { include Virtus } end it { described_class.should respond_to(:attributes) } describe ".attributes" do before do described_class.attribute(:name, String) described_class.attribute(:age, Integer) end subject { described_class.attributes } it "returns a set of attributes" do subject.should be_kind_of(Virtus::AttributeSet) end end end
Version data entries
7 entries across 7 versions & 1 rubygems