start working on parse()
This commit is contained in:
parent
1b192e422d
commit
67e9ec2c64
@ -1,5 +1,8 @@
|
|||||||
require "yawpa/version"
|
require "yawpa/version"
|
||||||
|
|
||||||
module Yawpa
|
module Yawpa
|
||||||
# Your code goes here...
|
module_function
|
||||||
|
def parse(config, params)
|
||||||
|
return [[], params]
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
@ -1,5 +1,11 @@
|
|||||||
require 'spec_helper'
|
require 'spec_helper'
|
||||||
|
|
||||||
describe Yawpa do
|
describe Yawpa do
|
||||||
pending "write it"
|
describe 'parse' do
|
||||||
|
it "returns everything as arguments when no options present" do
|
||||||
|
config = { }
|
||||||
|
params = ['one', 'two', 'three', 'four']
|
||||||
|
Yawpa.parse(config, params).should eq([[], params])
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user