Skip to content

Commit

Permalink
Switch from assigment to append, remove useless test
Browse files Browse the repository at this point in the history
  • Loading branch information
erinzm committed Jul 10, 2015
1 parent 72cf747 commit be30981
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion lib/gcodify/opsmixin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module Gcodify::OpsMixin
#
# @return [HoleOp] a hole-drilling operation
def hole(options)
@ops = Gcodify::Ops::HoleOp.new(options)
@ops << Gcodify::Ops::HoleOp.new(options)
end

# (see #hole)
Expand Down
6 changes: 0 additions & 6 deletions spec/gcodify_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@
it 'has a version number' do
expect(Gcodify::VERSION).not_to be nil
end
it 'works correctly with a dummy operation' do
program = Gcodify.program do
dummy "foo"
end
expect(program.to_gcode).to eq "foo"
end
it 'does useful work' do
program = Gcodify.program do
hole :at => [10, 10], :depth => 10
Expand Down

0 comments on commit be30981

Please sign in to comment.