Sha256: c26b5aa66f95c582c480501364ff33b8d28592513bc4feffdda45391b69c4e74
Contents?: true
Size: 476 Bytes
Versions: 2
Compression:
Stored size: 476 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cells-4.0.0.beta6 | test/twin_test.rb |
cells-4.0.0.beta5 | test/twin_test.rb |