Sha256: a9992c69df18ff9cde8187c6dc050e591dd6ef0c327cd5c98efdd2abef88250c
Contents?: true
Size: 336 Bytes
Versions: 2
Compression:
Stored size: 336 Bytes
Contents
require 'spec_helper' class DummyModel < BlueStateDigital::ApiDataModel attr_accessor :attr1, :attr2 end describe BlueStateDigital::ApiDataModel do it "should initialize model with attributes" do model = DummyModel.new({ attr1: "1", attr2: "2" }) expect(model.attr1).to eq("1") expect(model.attr2).to eq("2") end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
blue_state_digital-0.7.0 | spec/blue_state_digital/api_data_model_spec.rb |
blue_state_digital-0.6.0 | spec/blue_state_digital/api_data_model_spec.rb |