call_center 0.0.5 → 0.0.6
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/VERSION +1 -1
- data/call_center.gemspec +2 -2
- data/lib/call_center/test/minitest/dsl.rb +7 -4
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.6
|
data/call_center.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{call_center}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.6"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Henry Hsu"]
|
12
|
-
s.date = %q{2011-10-
|
12
|
+
s.date = %q{2011-10-25}
|
13
13
|
s.description = %q{Support for describing call center workflows}
|
14
14
|
s.email = %q{hhsu@zendesk.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -9,8 +9,7 @@ module CallCenter
|
|
9
9
|
class ItShouldFlow
|
10
10
|
def initialize(context, &block)
|
11
11
|
@context = context
|
12
|
-
self.instance_eval(&block)
|
13
|
-
verify
|
12
|
+
self.instance_eval(&block) if block_given?
|
14
13
|
end
|
15
14
|
|
16
15
|
def on(event)
|
@@ -194,11 +193,15 @@ module CallCenter
|
|
194
193
|
include ActionController::Assertions::SelectorAssertions
|
195
194
|
|
196
195
|
def self.it_should_flow(&block)
|
197
|
-
CallCenter::Test::MiniTest::DSL::ItShouldFlow.new(self, &block)
|
196
|
+
CallCenter::Test::MiniTest::DSL::ItShouldFlow.new(self, &block).verify
|
198
197
|
end
|
199
198
|
|
200
199
|
def self.it_should_render(&block)
|
201
|
-
CallCenter::Test::MiniTest::DSL::ItShouldRender.new(self, &block)
|
200
|
+
CallCenter::Test::MiniTest::DSL::ItShouldRender.new(self, &block).verify
|
201
|
+
end
|
202
|
+
|
203
|
+
def stub_branches(object)
|
204
|
+
CallCenter::Test::MiniTest::DSL::ItShouldFlow.new(self).restubs(object)
|
202
205
|
end
|
203
206
|
|
204
207
|
def response_from_page_or_rjs
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: call_center
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 6
|
10
|
+
version: 0.0.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Henry Hsu
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-10-
|
18
|
+
date: 2011-10-25 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|