shoes-cucumber 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +4 -0
- data/Gemfile +4 -0
- data/Rakefile +1 -0
- data/lib/shoes/cucumber.rb +51 -0
- data/lib/shoes/cucumber/version.rb +5 -0
- data/shoes-cucumber.gemspec +21 -0
- metadata +74 -0
data/.gitignore
ADDED
data/Gemfile
ADDED
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
@@ -0,0 +1,51 @@
|
|
1
|
+
require "shoes/cucumber/version"
|
2
|
+
|
3
|
+
require 'rspec/mocks'
|
4
|
+
class Shoes;
|
5
|
+
RSpec::Mocks.setup(self)
|
6
|
+
class Types; end
|
7
|
+
class Background; end
|
8
|
+
class Border; end
|
9
|
+
class Canvas; end
|
10
|
+
class Check; end
|
11
|
+
class Radio; end
|
12
|
+
class EditLine; end
|
13
|
+
class EditBox; end
|
14
|
+
class Effect; end
|
15
|
+
class Image; end
|
16
|
+
class ListBox; end
|
17
|
+
class Progress; end
|
18
|
+
class Shape; end
|
19
|
+
class TextBlock; end
|
20
|
+
class Text; end
|
21
|
+
|
22
|
+
# All of the classes above are ones that Shoes needs to be just
|
23
|
+
# bootstrapped, all the ones below are ones I'm mocking out from
|
24
|
+
# the C code. I'm not sure if there's a good distinction...
|
25
|
+
|
26
|
+
class Button
|
27
|
+
attr_accessor :name
|
28
|
+
def initialize(name, &blk)
|
29
|
+
self.name = name
|
30
|
+
instance_eval &blk if block_given?
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
attr_accessor :elements
|
35
|
+
|
36
|
+
def initialize
|
37
|
+
self.elements = []
|
38
|
+
end
|
39
|
+
|
40
|
+
def self.app
|
41
|
+
new
|
42
|
+
end
|
43
|
+
|
44
|
+
def append(&blk)
|
45
|
+
instance_eval &blk if block_given?
|
46
|
+
end
|
47
|
+
|
48
|
+
def button(name, &blk)
|
49
|
+
self.elements << Button.new(name, &blk)
|
50
|
+
end
|
51
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "shoes/cucumber/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = "shoes-cucumber"
|
7
|
+
s.version = Shoes::Cucumber::VERSION
|
8
|
+
s.authors = ["Steve Klabnik"]
|
9
|
+
s.email = ["steve@steveklabnik.com"]
|
10
|
+
s.homepage = "http://github.com/shoes/shoes-cucumber"
|
11
|
+
s.summary = %q{Use Cukes to test your Shoes!}
|
12
|
+
s.description = %q{Use Cukes to test your Shoes! Mostly mocking at this point, but eventually will let you test all aspects of Shoes apps.}
|
13
|
+
|
14
|
+
s.files = `git ls-files`.split("\n")
|
15
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
16
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
17
|
+
s.require_paths = ["lib"]
|
18
|
+
|
19
|
+
s.add_runtime_dependency "cucumber"
|
20
|
+
s.add_runtime_dependency "rspec"
|
21
|
+
end
|
metadata
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: shoes-cucumber
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Steve Klabnik
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2011-08-19 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: cucumber
|
16
|
+
requirement: &2161498220 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *2161498220
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: rspec
|
27
|
+
requirement: &2161497800 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
type: :runtime
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *2161497800
|
36
|
+
description: Use Cukes to test your Shoes! Mostly mocking at this point, but eventually
|
37
|
+
will let you test all aspects of Shoes apps.
|
38
|
+
email:
|
39
|
+
- steve@steveklabnik.com
|
40
|
+
executables: []
|
41
|
+
extensions: []
|
42
|
+
extra_rdoc_files: []
|
43
|
+
files:
|
44
|
+
- .gitignore
|
45
|
+
- Gemfile
|
46
|
+
- Rakefile
|
47
|
+
- lib/shoes/cucumber.rb
|
48
|
+
- lib/shoes/cucumber/version.rb
|
49
|
+
- shoes-cucumber.gemspec
|
50
|
+
homepage: http://github.com/shoes/shoes-cucumber
|
51
|
+
licenses: []
|
52
|
+
post_install_message:
|
53
|
+
rdoc_options: []
|
54
|
+
require_paths:
|
55
|
+
- lib
|
56
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
63
|
+
none: false
|
64
|
+
requirements:
|
65
|
+
- - ! '>='
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '0'
|
68
|
+
requirements: []
|
69
|
+
rubyforge_project:
|
70
|
+
rubygems_version: 1.8.6
|
71
|
+
signing_key:
|
72
|
+
specification_version: 3
|
73
|
+
summary: Use Cukes to test your Shoes!
|
74
|
+
test_files: []
|