Permalink
Browse files

::Hello -> Trema::Hello

  • Loading branch information...
1 parent 487bac7 commit 5d37d6870eea866a11d4b73a79611e49cf02ee1d @yasuhito yasuhito committed Apr 22, 2013
Showing with 5 additions and 5 deletions.
  1. +1 −1 Rakefile
  2. +3 −3 ruby/trema/messages/hello.rb
  3. +1 −1 spec/trema/{ → messages}/hello_spec.rb
View
@@ -319,7 +319,7 @@ end
task :spec => :libruby
RSpec::Core::RakeTask.new do | task |
task.verbose = $trace
- task.pattern = FileList[ "spec/trema_spec.rb", "spec/trema/hello_spec.rb" ]
+ task.pattern = FileList[ "spec/trema_spec.rb", "spec/trema/messages/hello_spec.rb" ]
task.rspec_opts = "--format documentation --color"
end
@@ -24,14 +24,14 @@ class Hello < Message
def check_version version, name
- raise ArgumentError, "Invalid #{ name } specified" if version.length > 1
+ raise ArgumentError, "Invalid #{ name } specified" if version.length > 1
end
end
end
-end
-Hello = Trema::Messages::Hello
+ Hello = Messages::Hello
+end
### Local variables:
@@ -16,7 +16,7 @@
#
-require File.join( File.dirname( __FILE__ ), "..", "spec_helper" )
+require File.join( File.dirname( __FILE__ ), "..", "..", "spec_helper" )
require "trema"

0 comments on commit 5d37d68

Please sign in to comment.