maker_website 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/exe/maker +27 -0
- data/lib/maker_website/version.rb +1 -1
- data/lib/maker_website/website_spec.rb +17 -0
- data/maker_website-0.1.1.gem +0 -0
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5a19be453dbb40b2c666d479e5b050e0324d627c
|
4
|
+
data.tar.gz: e6a327784779cd7378c61627a6902a4ee355acb0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f756f40265dfe9c4a42a332c4543d6fac13882ff3c0a94a1e761e5842381529194ad62d0da933a8cce7e3123b02105c0cb21cb9a4bd0ea0fc1a0ea5f9c8c2023
|
7
|
+
data.tar.gz: 4ba159db4625f904c89a7621cbba29441474f4c44a5bad883642ed34b13643d3485e805ea4dbec83258248c1266b17311e0687301e6664c373c30db48086f203
|
data/exe/maker
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'rspec'
|
4
|
+
require 'rspec/core/formatters/json_formatter'
|
5
|
+
|
6
|
+
config = RSpec.configuration
|
7
|
+
|
8
|
+
formatter = RSpec::Core::Formatters::JsonFormatter.new(config.output_stream)
|
9
|
+
|
10
|
+
# create reporter with json formatter
|
11
|
+
reporter = RSpec::Core::Reporter.new(config)
|
12
|
+
config.instance_variable_set(:@reporter, reporter)
|
13
|
+
|
14
|
+
# internal hack
|
15
|
+
# api may not be stable, make sure lock down Rspec version
|
16
|
+
loader = config.send(:formatter_loader)
|
17
|
+
notifications = loader.send(:notifications_for,
|
18
|
+
RSpec::Core::Formatters::JsonFormatter)
|
19
|
+
|
20
|
+
reporter.register_listener(formatter, *notifications)
|
21
|
+
|
22
|
+
|
23
|
+
spec_file = File.expand_path( "../lib/maker_website/website_spec.rb", File.dirname(__FILE__))
|
24
|
+
RSpec::Core::Runner.run([spec_file])
|
25
|
+
|
26
|
+
# here's your json hash
|
27
|
+
p formatter.output_hash
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# Capybara stuff
|
2
|
+
require 'capybara'
|
3
|
+
require 'capybara/rspec'
|
4
|
+
require './server'
|
5
|
+
|
6
|
+
Capybara.app = Sinatra::Application.new
|
7
|
+
|
8
|
+
def app
|
9
|
+
Sinatra::Application
|
10
|
+
end
|
11
|
+
|
12
|
+
feature "Hello world" do
|
13
|
+
scenario "it works" do
|
14
|
+
visit "/"
|
15
|
+
expect(page).to have_content("Yellow World")
|
16
|
+
end
|
17
|
+
end
|
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: maker_website
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Forrest
|
@@ -69,7 +69,8 @@ dependencies:
|
|
69
69
|
description:
|
70
70
|
email:
|
71
71
|
- ben@silvabox.com
|
72
|
-
executables:
|
72
|
+
executables:
|
73
|
+
- maker
|
73
74
|
extensions: []
|
74
75
|
extra_rdoc_files: []
|
75
76
|
files:
|
@@ -79,8 +80,11 @@ files:
|
|
79
80
|
- Rakefile
|
80
81
|
- bin/console
|
81
82
|
- bin/setup
|
83
|
+
- exe/maker
|
82
84
|
- lib/maker_website.rb
|
83
85
|
- lib/maker_website/version.rb
|
86
|
+
- lib/maker_website/website_spec.rb
|
87
|
+
- maker_website-0.1.1.gem
|
84
88
|
- maker_website.gemspec
|
85
89
|
homepage: http://www.makersacademy.com
|
86
90
|
licenses: []
|