Skip to content

Commit

Permalink
::Hello -> Trema::Hello
Browse files Browse the repository at this point in the history
  • Loading branch information
yasuhito committed Apr 22, 2013
1 parent 487bac7 commit 5d37d68
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Expand Up @@ -319,7 +319,7 @@ end
task :spec => :libruby task :spec => :libruby
RSpec::Core::RakeTask.new do | task | RSpec::Core::RakeTask.new do | task |
task.verbose = $trace 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" task.rspec_opts = "--format documentation --color"
end end


Expand Down
6 changes: 3 additions & 3 deletions ruby/trema/messages/hello.rb
Expand Up @@ -24,14 +24,14 @@ class Hello < Message




def check_version version, name 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
end end
end




Hello = Trema::Messages::Hello Hello = Messages::Hello
end




### Local variables: ### Local variables:
Expand Down
Expand Up @@ -16,7 +16,7 @@
# #




require File.join( File.dirname( __FILE__ ), "..", "spec_helper" ) require File.join( File.dirname( __FILE__ ), "..", "..", "spec_helper" )
require "trema" require "trema"




Expand Down

0 comments on commit 5d37d68

Please sign in to comment.