Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Spec output [plain_text]
- [Sat Apr 12 - 00:36:03] [elliottcable @ bishop] [~/Documents/Work/Code/rdie/]
- -- rake aok
- (in /Users/elliottcable/Documents/Work/Code/rdie)
- ./spec/lib/classist_spec.rb:30: warning: parenthesize argument(s) for future version
- Exceptions
- - should have a not_found method
- - should have a not_acceptable method
- Classist
- - should allow one to attach functionality to be run on syntactically sugary class creation (FAILED - 1)
- Core extensions: Object
- - should respond to #on_execute
- - should run the on_execute block only if __FILE__ and $0 are the same
- Core extensions: Symbol
- - should respond to #/
- - should be able to join two symbols into a string
- - should be able to join a symbol and a string into a string
- - should work the same as String#/ from merb-core
- D (the die class)
- - should be able to roll standard RPG gaming die
- - should be able to roll d00, i.e. d100
- - should be able to do basic die math
- - should explode if you send a non-mathematical method to a die
- - should be min-able
- - should be max-able
- - should accept chaining of arbitrary methods
- 1)
- 'Classist should allow one to attach functionality to be run on syntactically sugary class creation' FAILED
- expected [ClassistSpecHelper::Foo, ClassistSpecHelper::Bar], got [ClassistSpecHelper::Foo, ClassistSpecHelper::Foo, ClassistSpecHelper::Bar, ClassistSpecHelper::Bar]
- ./spec/lib/classist_spec.rb:27:
- Finished in 0.060514 seconds
- 16 examples, 1 failure
- rake aborted!
- Command ruby -I"lib:server/lib" -S rcov --exclude lib\/spec,bin\/spec,config\/boot.rb -o "meta/coverage" "/usr/local/lib/ruby/gems/1.8/gems/rspec-1.1.3/bin/spec" -- "spec/controllers/exceptions_spec.rb" "spec/lib/classist_spec.rb" "spec/lib/core_ext/object_spec.rb" "spec/lib/core_ext/symbol_spec.rb" "spec/lib/d_spec.rb" --format specdoc --colour failed
- (See full trace by running task with --trace)
- ## Relevant specfile
- require File.join( File.dirname(__FILE__), "..", "spec_helper" )
- require 'classist'
- describe Classist do
- before(:all) do
- @spec_helper = lambda do
- module ClassistSpecHelper
- include Classist
- Classized = []
- def self.classize(klass)
- Classized << klass
- end
- end
- end
- end
- before(:each) do
- @spec_helper.call
- end
- it "should allow one to attach functionality to be run on syntactically sugary class creation" do
- module ClassistSpecHelper
- class Foo; end
- class Bar; end
- end
- ClassistSpecHelper::Classized.should be [
- ClassistSpecHelper::Foo,
- ClassistSpecHelper::Bar
- ]
- end
- after(:each) do
- Object.const_remove :ClassistSpecHelper
- end
- end
Add Comment
Please, Sign In to add comment