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

Version Path
cells-4.1.7 test/twin_test.rb
cells-4.1.6 test/twin_test.rb
cells-4.1.5 test/twin_test.rb
cells-4.1.4 test/twin_test.rb
cells-4.1.3 test/twin_test.rb
cells-4.1.2 test/twin_test.rb
cells-4.1.1 test/twin_test.rb
cells-4.1.0 test/twin_test.rb
cells-4.1.0.rc1 test/twin_test.rb
cells-4.0.5 test/twin_test.rb
cells-4.0.4 test/twin_test.rb
cells-4.0.3 test/twin_test.rb
cells-4.0.2 test/twin_test.rb
cells-4.0.1 test/twin_test.rb