Sha256: c57242499370146f49005ab37f82ce0acb9bcdba82e734bbda83a0c8edf0166a
Contents?: true
Size: 728 Bytes
Versions: 3
Compression:
Stored size: 728 Bytes
Contents
require_relative "../../../test_helper" class DecoratorHelpersDummy include Troo::DecoratorHelpers end module Troo describe DecoratorHelpers do let(:described_class) { DecoratorHelpersDummy } let(:described_instance) { described_class.new } describe "#title" do before do described_instance.stubs(:default).returns("*") described_instance.stubs(:id).returns(67) described_instance.stubs(:name).returns("My Test Dummy") described_instance.stubs(:options).returns({}) end subject { described_instance.title } it "returns a formatted string representing the card title" do subject.must_match /\* \(67\) My Test Dummy/ end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
troo-0.0.7 | test/lib/troo/display/decorator_helpers_test.rb |
troo-0.0.6 | test/lib/troo/display/decorator_helpers_test.rb |
troo-0.0.5 | test/lib/troo/display/decorator_helpers_test.rb |