skink 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ language: ruby
2
+ rvm:
3
+ - "1.9.2"
4
+ - "1.9.3"
5
+ script: bundle exec rspec spec
data/README.md CHANGED
@@ -1,4 +1,7 @@
1
- # Skink
1
+ Skink
2
+ =====
3
+
4
+ [![Build Status](https://travis-ci.org/toddthomas/skink.png)](http://travis-ci.org/toddthomas/skink)
2
5
 
3
6
  Skink is Capybara's smaller, more primitive companion. Button-clicking
4
7
  and JavaScript are beyond Skink's intellectual abilities, but Skink is
@@ -1,4 +1,4 @@
1
- Dir[File.dirname(__FILE__) + "/../../../spec/support/**/*.rb"].each {|f| STDOUT.puts f; require f}
1
+ Dir[File.dirname(__FILE__) + "/../../../spec/support/**/*.rb"].each {|f| require f}
2
2
 
3
3
  require 'skink/dsl'
4
4
 
@@ -10,6 +10,9 @@ module Skink
10
10
  base.instance_eval do
11
11
  alias :background :before
12
12
  alias :scenario :it
13
+ alias :xscenario :xit
14
+ alias :given :let
15
+ alias :given! :let!
13
16
  end
14
17
  end
15
18
  end
data/lib/skink/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Skink
2
- VERSION = "0.5.0"
2
+ VERSION = "0.6.0"
3
3
  end
data/skink.gemspec CHANGED
@@ -19,6 +19,7 @@ Gem::Specification.new do |gem|
19
19
 
20
20
  gem.add_development_dependency "rspec"
21
21
  gem.add_development_dependency "sinatra"
22
+ gem.add_development_dependency "rake"
22
23
 
23
24
  gem.files = `git ls-files`.split($/)
24
25
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
@@ -160,11 +160,17 @@ describe Skink::DSL, type: :api do
160
160
  end
161
161
 
162
162
  api_feature "Built-in acceptance test DSL" do
163
- background "with something set" do
163
+ background "with background" do
164
164
  @answer = 42
165
165
  end
166
166
 
167
- scenario "verifying something is set" do
167
+ scenario "background exists" do
168
168
  @answer.should be 42
169
169
  end
170
+
171
+ given(:user) { "yer mom" }
172
+
173
+ scenario "given method works" do
174
+ user.should eq "yer mom"
175
+ end
170
176
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: skink
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-03 00:00:00.000000000 Z
12
+ date: 2012-12-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rack-test
@@ -107,6 +107,22 @@ dependencies:
107
107
  - - ! '>='
108
108
  - !ruby/object:Gem::Version
109
109
  version: '0'
110
+ - !ruby/object:Gem::Dependency
111
+ name: rake
112
+ requirement: !ruby/object:Gem::Requirement
113
+ none: false
114
+ requirements:
115
+ - - ! '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ! '>='
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
110
126
  description: A Ruby DSL for testing REST APIs.
111
127
  email:
112
128
  - todd.thomas@openlogic.com
@@ -115,6 +131,7 @@ extensions: []
115
131
  extra_rdoc_files: []
116
132
  files:
117
133
  - .gitignore
134
+ - .travis.yml
118
135
  - Gemfile
119
136
  - LICENSE.txt
120
137
  - README.md
@@ -148,12 +165,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
148
165
  - - ! '>='
149
166
  - !ruby/object:Gem::Version
150
167
  version: '0'
168
+ segments:
169
+ - 0
170
+ hash: 2165425510283092143
151
171
  required_rubygems_version: !ruby/object:Gem::Requirement
152
172
  none: false
153
173
  requirements:
154
174
  - - ! '>='
155
175
  - !ruby/object:Gem::Version
156
176
  version: '0'
177
+ segments:
178
+ - 0
179
+ hash: 2165425510283092143
157
180
  requirements: []
158
181
  rubyforge_project:
159
182
  rubygems_version: 1.8.24