gusto 1.0.0.beta4 → 1.0.0.beta5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c475ec8fe54ffe28a99241bf9c8039b673f40849
4
- data.tar.gz: 5144f203e060260a09a58b725beb1df27b0f440e
3
+ metadata.gz: 8c1808ada1efad77009fd9f1496f9a51f3a323f2
4
+ data.tar.gz: 43061acf4d0696732bf59e3fd430f9267d677764
5
5
  SHA512:
6
- metadata.gz: 736c3f1d18c61f628ef8ff5c5cf3038120682d90c1c5bf58d0a2bd9682393cd61ac9e7e8e1ae25f8fc4889b4042b5f1f6526027b8ead75f4f9b29791b9c651cd
7
- data.tar.gz: 3ddfb59df555ecd18d0a0485d68bad0d52d65c602b75d12e12cfe9234800c10c6ea858f3252a7f1803cb51db870746a9da7659464059bc0745e57c9d9639aad5
6
+ metadata.gz: bf24f5a1eb91e800657f89e16c4283243ec8a40f3046cf5e05d1571af4fb4cdb711d4f096838fcd122ef16e89744ac51d95252668e71859b10af45c3f5aee6a0
7
+ data.tar.gz: 340da76b5b3868259fc03f6e2bdc55c87c5ae3e8a1d01ed85a869ac5dabe8491182af6cd16f94fe1e6769cb527edf1f4a6e5db7c6c2fbaccbdd7657c5c917210
data/lib/Spec/DSL.coffee CHANGED
@@ -83,7 +83,7 @@ window.Spec.DSL = DSL =
83
83
  mock: (args...) ->
84
84
  name = args.shift() if typeof args[0] is 'string'
85
85
  stubs = args.pop() || {}
86
- new Spec.MockObject(name, stubs)
86
+ new Spec.Mock(name, stubs)
87
87
 
88
88
  # Defines the subject of your test.
89
89
  #
@@ -1,6 +1,9 @@
1
1
  window.Spec ||= {}
2
2
 
3
- class window.Spec.MockObject
3
+ class window.Spec.Mock
4
4
  constructor: (@name, stubs) ->
5
5
  for name, value of stubs
6
6
  @stub(name).andReturn(value)
7
+
8
+ toString: ->
9
+ "[#{@name} Mock]"
data/lib/Spec.coffee CHANGED
@@ -8,7 +8,7 @@
8
8
  #= require Spec/MethodStub
9
9
  #= require Spec/MethodStub/PossibleCall
10
10
  #= require Spec/DelayedExpectation
11
- #= require Spec/MockObject
11
+ #= require Spec/Mock
12
12
 
13
13
  # Seaweed Coffeescript spec framework
14
14
 
@@ -54,7 +54,7 @@ Spec.Util.extend window.Spec,
54
54
  @root,
55
55
  Element,
56
56
  jQuery,
57
- Spec.MockObject
57
+ Spec.Mock
58
58
  )
59
59
 
60
60
  Spec.Util.extend(@root,
data/lib/gusto/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Gusto
2
- VERSION = "1.0.0.beta4"
2
+ VERSION = "1.0.0.beta5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gusto
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.beta4
4
+ version: 1.0.0.beta5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Cohen
@@ -145,7 +145,7 @@ files:
145
145
  - lib/Spec/Matchers.coffee
146
146
  - lib/Spec/MethodStub/PossibleCall.coffee
147
147
  - lib/Spec/MethodStub.coffee
148
- - lib/Spec/MockObject.coffee
148
+ - lib/Spec/Mock.coffee
149
149
  - lib/Spec/ObjectDSL.coffee
150
150
  - lib/Spec/Report.coffee
151
151
  - lib/Spec/Suite.coffee