Sha256: 9a950cd0852643caae74759818b2e9ee9b3404fcbd5635003993eade5aaf9890
Contents?: true
Size: 513 Bytes
Versions: 14
Compression:
Stored size: 513 Bytes
Contents
# require 'test_helper' # require 'cell/twin' # class TwinTest < MiniTest::Spec # class SongCell < Cell::ViewModel # class Twin < Disposable::Twin # property :title # option :online? # end # include Cell::Twin # twin Twin # def show # "#{title} is #{online?}" # end # def title # super.downcase # end # end # let (:model) { OpenStruct.new(title: "Kenny") } # it { SongCell.new( model, :online? => true).call.must_equal "kenny is true" } # end
Version data entries
14 entries across 14 versions & 1 rubygems