Sha256: f5665aac8cc6bbf33ca708e589740940485b25fc0cbb292120e350616aab1bff
Contents?: true
Size: 830 Bytes
Versions: 1
Compression:
Stored size: 830 Bytes
Contents
require 'spec_helper' require 'cells' class DummyCell < Cell::Base def show "I'm Dummy." end def update(what) "Updating #{what}." end end module RSpec::Rails describe CellExampleGroup do let(:group) do RSpec::Core::ExampleGroup.describe do include CellExampleGroup end end it "adds :type => :cell to the metadata" do group.metadata[:type].should eq(:cell) end describe "#render_cell" do it "renders a state" do group.new.render_cell(:dummy, :show).should == "I'm Dummy." end it "allows passing state args" do group.new.render_cell(:dummy, :update, "this").should == "Updating this." end end it "responds to #cell" do group.new.cell(:dummy).should be_kind_of(DummyCell) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rspec-cells-0.1.0 | spec/cells/cell_spec_spec.rb |