Sha256: ff97c9998e56832cd9e2d276bd5b8cb804bec8af2b9bc4c109078e0cfdcee199

Contents?: true

Size: 268 Bytes

Versions: 2

Compression:

Stored size: 268 Bytes

Contents

require File.dirname(__FILE__) + '/spec_helper.rb'

describe Rfactor::Code do
  it "should require new method name on refactor" do
    rfactor = Rfactor::Code.new("def a; end")
    lambda { rfactor.extract_method({}) }.should raise_error(":name is required")
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fabiokung-rfactor-0.0.1 spec/code_spec.rb
fabiokung-rfactor-0.0.2 spec/code_spec.rb