Skip to content

Instantly share code, notes, and snippets.

@biot023
Created July 8, 2010 12:02
Show Gist options
  • Save biot023/467927 to your computer and use it in GitHub Desktop.
Save biot023/467927 to your computer and use it in GitHub Desktop.
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