filet 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -4,3 +4,4 @@ Gemfile.lock
4
4
  pkg/*
5
5
  /.rvmrc
6
6
  *.rbc
7
+ .rbx*
data/Readme.md CHANGED
@@ -69,7 +69,7 @@ We provide several hooks for options processing.
69
69
 
70
70
  ```ruby
71
71
  Filet.feature_hook do |base, options|
72
- base.send(:include, Capybara)
72
+ base.send(:include, Capybara::DSL)
73
73
  end
74
74
  ```
75
75
 
@@ -39,7 +39,7 @@ module Filet
39
39
  end
40
40
  end
41
41
 
42
- def feature(name, description, options = {}, &block)
42
+ def feature(name, description=nil, options = {}, &block)
43
43
  klass = create_class(name, Filet::TestCase, &block)
44
44
  klass.description = description
45
45
 
@@ -1,3 +1,3 @@
1
1
  module Filet
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
@@ -9,6 +9,12 @@ module Filet
9
9
  assert_equal "feature description lorem ipsum", klass.description
10
10
  end
11
11
 
12
+ def test_feature_without_a_description
13
+ klass = feature("feature name")
14
+ assert_equal Filet::TestCase, klass.superclass
15
+ assert_nil klass.description
16
+ end
17
+
12
18
  def test_context_returns_feature_subclass
13
19
  klass = nil
14
20
  feature("feature name", "description") do
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: filet
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 1
10
- version: 0.2.1
9
+ - 2
10
+ version: 0.2.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jorge Dias
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-08-24 00:00:00 +02:00
19
+ date: 2011-09-13 00:00:00 +02:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency