cscotta (owner)

Revisions

  • ca7010 Tue Jul 07 11:46:42 -0700 2009
gist: 142275 Download_button fork
public
Public Clone URL: git://gist.github.com/142275.git
Embed All Files: show embed
rspec_interface.rb #
1
2
3
4
5
6
7
8
9
10
11
12
13
# Invocation from RAILS_ROOT:
# RAILS_ENV=test script/runner public/test/article_spec.rb
 
require 'spec'
 
describe Article do
  it "should exist" do
    article = Article.find(:first)
    article.slug.length.should > 0
  end
end
 
Spec::Runner.run