lib/unencumbered.rb in unencumbered-0.0.5 vs lib/unencumbered.rb in unencumbered-0.0.6
- old
+ new
@@ -1,7 +1,10 @@
module Spec::DSL::Main
alias :Feature :describe
+ def Story(description)
+ @description_args.push("\n#{description}\n")
+ end
end
module Spec::Example::ExampleGroupMethods
def Scenario(description, &blk)
describe("Scenario: #{description}", &blk)
@@ -19,9 +22,13 @@
example("Then #{description}", &blk)
end
def And(description, &blk)
example("And #{description}", &blk)
+ end
+
+ def But(description, &blk)
+ example("But #{description}", &blk)
end
def executes(scope=:all, &blk)
before(scope, &blk)
end