Sha256: a2b9d18304ab16aa18e9cd58d1f19062cc9d156d50417c433bcbd6ccaec322bf
Contents?: true
Size: 825 Bytes
Versions: 4
Compression:
Stored size: 825 Bytes
Contents
# # This file is part of the brauser gem. Copyright (C) 2013 and above Shogun <shogun@cowtech.it>. # Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php. # require "spec_helper" describe Brauser::Value do subject { ::Brauser::Value.new(1) } describe "#initialize" do it "should save the value" do expect(subject.value).to eq(1) end end describe "#==" do it "should compare against a value or an array of value" do expect(subject).to eq(1) expect(subject).not_to eq(2) expect(subject).to eq([1, 2]) end end describe "it should delegate the rest to the value" do it "- #to_s" do expect(subject.to_s).to eq("1") end it "- #method_missing" do expect(subject.odd?).to be_truthy end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
brauser-4.1.2 | spec/brauser/value_spec.rb |
brauser-4.1.1 | spec/brauser/value_spec.rb |
brauser-4.1.0 | spec/brauser/value_spec.rb |
brauser-4.0.0 | spec/brauser/value_spec.rb |