call_center 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.5
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.5"
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-24}
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: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 5
10
- version: 0.0.5
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-24 00:00:00 -07:00
18
+ date: 2011-10-25 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency