Created
July 8, 2010 12:02
-
-
Save biot023/467927 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "spec_helper" | |
describe "tabs/show.html.haml", :type => :cell_view do | |
def render_cell( cell_name, cell_action ) | |
render( File.join( Rails.root, "app", "cells", cell_name.to_s, "#{ cell_action.to_s }.html.haml" ) ) | |
end | |
it "should be speccable" do | |
assign( :selected_tab, "Moose Concept" ) | |
lambda { render_cell( :tabs, :show ) }.should_not raise_error | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment