Sha256: b6e911b2ce6e5a2d971c0accd36027f0d627c38a83606bdbb8be0f44601e8681
Contents?: true
Size: 1000 Bytes
Versions: 1
Compression:
Stored size: 1000 Bytes
Contents
= Rspec Cells <em>Spec your Cells.</em> This plugin allows you to test your cells easily using RSpec. Basically, it adds a cells example group with a <tt>#render_cell</tt> helper. Cells is Rails' popular {view components framework}[http://github.com/apotonick/cells]. = Installation This gem runs with RSpec2 and Rails 3.0, so just add it to your app's +Gemfile+. group :test do gem "rspec-cells" = Usage Put all your specs under <tt>spec/cells</tt> folder. Here is how a simple spec could look like. describe PostsCell do it "should render the posts count" do render_cell(:posts, :count).should have_selector("p", :content => "4 posts!") end end Run your examples with rake spec:cells If you need more helpers, matchers and stuff, {just let us know}[http://cells.rubyforge.org/community.html]. == LICENSE Copyright (c) 2010, Nick Sutterer Copyright (c) 2007-2009, Dmytro Shteflyuk <kpumuk@kpumuk.info> http://kpumuk.info Released under the MIT License.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rspec-cells-0.0.3 | README.rdoc |