Created
April 22, 2009 16:34
-
-
Save btakita/99895 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 "rubygems" | |
require "spec" | |
require "spec/autorun" | |
require "spec/interop/test" | |
require "activesupport" | |
require "shoulda" | |
describe "Something" do | |
def test_something | |
puts "in test_something" | |
assert true | |
end | |
# should "do something" do | |
# puts "in do something" | |
# assert true | |
# end | |
it "does something" do | |
puts "in does something" | |
true.should be_true | |
end | |
end |
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 "rubygems" | |
require "spec" | |
require "spec/autorun" | |
require "spec/interop/test" | |
require "activesupport" | |
require "shoulda" | |
describe "Something" do | |
class << self | |
alias_method :should, :example | |
end | |
def test_something | |
puts "in test_something" | |
assert true | |
end | |
should "do something" do | |
puts "in do something" | |
assert true | |
end | |
it "does something" do | |
puts "in does something" | |
true.should be_true | |
end | |
endx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment