Skip to content

Commit b46f6da

Browse files
committed
specs
1 parent f6e307e commit b46f6da

8 files changed

+58
-1
lines changed

.rspec

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
--format documentation
2+
--color

.travis.yml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
language: ruby
2+
rvm:
3+
- 2.1.2

Gemfile.lock

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
PATH
2+
remote: .
3+
specs:
4+
huginn_agent (0.1)
5+
6+
GEM
7+
remote: https://rubygems.org/
8+
specs:
9+
diff-lcs (1.2.5)
10+
rake (10.3.2)
11+
rspec (3.1.0)
12+
rspec-core (~> 3.1.0)
13+
rspec-expectations (~> 3.1.0)
14+
rspec-mocks (~> 3.1.0)
15+
rspec-core (3.1.4)
16+
rspec-support (~> 3.1.0)
17+
rspec-expectations (3.1.2)
18+
diff-lcs (>= 1.2.0, < 2.0)
19+
rspec-support (~> 3.1.0)
20+
rspec-mocks (3.1.2)
21+
rspec-support (~> 3.1.0)
22+
rspec-support (3.1.1)
23+
24+
PLATFORMS
25+
ruby
26+
27+
DEPENDENCIES
28+
bundler (~> 1.7)
29+
huginn_agent!
30+
rake (~> 10.0)
31+
rspec

Rakefile

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
require "bundler/gem_tasks"
2+
require "rspec/core/rake_task"
3+
4+
RSpec::Core::RakeTask.new(:spec)
5+
6+
task :default => :spec
7+

lib/huginn_agent.rb

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
require 'huginn_agent/version'
2+
13
class HuginnAgent
24
def self.register(*paths)
35
@paths ||= []
@@ -12,4 +14,4 @@ def self.require!
1214
Agent::TYPES << "Agents::#{File.basename(path.to_s).camelize}"
1315
end
1416
end
15-
end
17+
end

lib/huginn_agent/version.rb

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
class HuginnAgent
2+
VERSION = '0.1'
3+
end

spec/huginn_agent_spec.rb

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
require 'spec_helper'
2+
3+
describe HuginnAgent do
4+
it 'has a version number' do
5+
expect(HuginnAgent::VERSION).not_to be nil
6+
end
7+
end

spec/spec_helper.rb

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
2+
require 'huginn_agent'

0 commit comments

Comments
 (0)