Skip to content

Commit 942d9da

Browse files
committed
test framework
1 parent 1f1880e commit 942d9da

File tree

5 files changed

+54
-20
lines changed

5 files changed

+54
-20
lines changed

.rspec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
--color
2+
--format documentation

Gemfile.lock

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
PATH
2+
remote: .
3+
specs:
4+
lambchop (0.2.0)
5+
6+
GEM
7+
remote: https://rubygems.org/
8+
specs:
9+
diff-lcs (1.2.5)
10+
rspec (2.14.1)
11+
rspec-core (~> 2.14.0)
12+
rspec-expectations (~> 2.14.0)
13+
rspec-mocks (~> 2.14.0)
14+
rspec-core (2.14.8)
15+
rspec-expectations (2.14.5)
16+
diff-lcs (>= 1.1.3, < 2.0)
17+
rspec-mocks (2.14.6)
18+
19+
PLATFORMS
20+
ruby
21+
22+
DEPENDENCIES
23+
lambchop!
24+
rspec

lambchop.gemspec

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,13 @@
1-
require 'rubygems'
2-
require 'rubygems/package_task'
3-
41
Gem::Specification.new do |s|
5-
s.platform = Gem::Platform::RUBY
6-
s.name = 'lambchop'
7-
s.version = PKG_VERSION
8-
s.summary = "Create puppet DSL from arbitrary files."
9-
s.description = "You shouldn't have to learn Puppet's DSL just to generate a manifest for a single config file. Lambchop automates that for you."
10-
s.authors = ["Erik M Jacobs"]
11-
s.email = '[email protected]'
12-
s.homepage = 'https://github.com/thoraxe/lambchop'
13-
s.files = PKG_FILES
14-
s.license = 'GPL-3.0'
2+
s.name = 'lambchop'
3+
s.version = '0.2.0'
4+
s.summary = "Create puppet DSL from arbitrary files."
5+
s.description = "You shouldn't have to learn Puppet's DSL just to generate a manifest for a single config file. Lambchop automates that for you."
6+
s.authors = ["Erik M Jacobs"]
7+
s.email = '[email protected]'
8+
s.homepage = 'https://github.com/thoraxe/lambchop'
9+
s.files = ["lib/lambchop.rb", "lib/util/parser.rb"]
10+
s.license = 'GPL-3.0'
1511
s.require_path = 'lib'
16-
s.autorequire = 'rake'
17-
1812
s.add_development_dependency "rspec"
1913
end
20-
21-
Gem::PackageTask.new(spec) do |pkg|
22-
pkg.need_zip = true
23-
pkg.need_tar = true
24-
end

spec/lambchop_spec.rb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
require 'spec_helper'
2+
3+
describe Lambchop do
4+
it "should return the correct dsl when selinux is not required" do
5+
pending
6+
end
7+
8+
it "should return the correct dsl when selinux is required" do
9+
pending
10+
end
11+
end

spec/spec_helper.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
require 'bundler/setup'
2+
Bundler.setup
3+
4+
require 'lambchop'
5+
6+
RSpec.configure do |config|
7+
# some (optional) config here
8+
end

0 commit comments

Comments
 (0)