Skip to content

Commit

Permalink
Fixed the test of the exception, which raises because of an illigal f…
Browse files Browse the repository at this point in the history
…unction code.
  • Loading branch information
atimin committed Jan 29, 2015
1 parent 6c97c77 commit e2704ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/read_rtu_response_spec.rb
Expand Up @@ -79,7 +79,8 @@ def read(num)
end

it "should raise exception if function is illegal" do
resp = make_resp("\xff\x0\x1\x0\x2").should raise_error {
resp = make_resp("\x1f\x0\x1\x0\x2")
lambda{ @cl_mb.test_read_method(resp)}.should raise_error {
ModBus::Errors::IllegalFunction
}
end
Expand Down

0 comments on commit e2704ae

Please sign in to comment.