Sha256: f439b201813b9c6fa74fdbabd2d8c2e8c7a95579a115a86a8b52a1453052b431

Contents?: true

Size: 413 Bytes

Versions: 5

Compression:

Stored size: 413 Bytes

Contents

require 'spec_helper'

describe Decorum::SuperHash do
  let(:soop) { Decorum::SuperHash.new(a: "z", b: "y", c: "x") }

  it "accepts a hash" do
    expect(soop.a).to eq("z")
  end
  
  it "returns nil on nonexistent methods" do
    expect(soop.asdfasdfasd).to be_nil
  end
  
  context "after initialization" do
    it "has working setters" do
      soop.d = "w"
      expect(soop.d).to eq("w")
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
decorum-0.5.1 spec/unit/superhash_spec.rb
decorum-0.5.0 spec/unit/superhash_spec.rb
decorum-0.4.1 spec/unit/superhash_spec.rb
decorum-0.4.0 spec/unit/superhash_spec.rb
decorum-0.3.0 spec/unit/superhash_spec.rb