Sha256: 6dfee9b6f4ea9bdf1c751cdb07f16247b10f890c87243c321b12040f80617937
Contents?: true
Size: 808 Bytes
Versions: 3
Compression:
Stored size: 808 Bytes
Contents
require 'test_helper' class TestCaseTest < MiniTest::Spec class SongCell < Cell::ViewModel end class Song class Cell < Cell::Concept end end let (:song) { Object.new } describe "#cell" do subject { cell("test_case_test/song", song) } it { subject.must_be_instance_of SongCell } it { subject.model.must_equal song } end describe "#concept" do subject { concept("test_case_test/song/cell", song) } it { subject.must_be_instance_of Song::Cell } it { subject.model.must_equal song } end # capybara support class CapybaraCell < Cell::ViewModel def show "<b>Grunt</b>" end end describe "capybara support" do subject { cell("test_case_test/capybara", nil) } it { subject.call } # add capybara tests here, @seuros. end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
cells-4.0.0.beta2 | test/test_case_test.rb |
cells-4.0.0.beta1 | test/test_case_test.rb |
cells-jamie-4.0.0.alpha1 | test/vm/test_case_test.rb |