Skip to content

Instantly share code, notes, and snippets.

@dchelimsky
Created February 8, 2010 16:46
Show Gist options
  • Save dchelimsky/298331 to your computer and use it in GitHub Desktop.
Save dchelimsky/298331 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'action_controller/base'
class SomeController < ActionController::Base
def index
render :text => "this text"
end
end
describe SomeController do
describe "index" do
it "returns some text" do
c = SomeController.new
c.index.should == "this text"
end
end
end
$ rspec spec
...
uninitialized constant ActionController::Metal (NameError)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment