cells 4.0.0.beta6 → 4.0.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,7 +5,7 @@ class TemplatesTest < MiniTest::Spec
5
5
  Templates = Cell::Templates
6
6
 
7
7
  # existing.
8
- it { Templates.new[['test/fixtures/bassist'], 'play.erb', {template_class: Tilt}].file.must_equal 'test/fixtures/bassist/play.erb' }
8
+ it { Templates.new[['test/fixtures/bassist'], 'play.erb', {template_class: Cell::Erb::Template}].file.must_equal 'test/fixtures/bassist/play.erb' }
9
9
 
10
10
  # not existing.
11
11
  it { Templates.new[['test/fixtures/bassist'], 'not-here.erb', {}].must_equal nil }
data/test/test_helper.rb CHANGED
@@ -10,6 +10,8 @@ require "rails/test_help" # adds stuff like @routes, etc.
10
10
  require 'cells'
11
11
  require "cells-erb"
12
12
 
13
+ Cell::ViewModel.send(:include, Cell::Erb) if Cell.const_defined?(:Erb) # FIXME: should happen in inititalizer.
14
+
13
15
  MiniTest::Spec.class_eval do
14
16
  include Cell::Testing
15
17
  end
data/test/twin_test.rb CHANGED
@@ -1,26 +1,26 @@
1
- require 'test_helper'
2
- require 'cell/twin'
1
+ # require 'test_helper'
2
+ # require 'cell/twin'
3
3
 
4
- class TwinTest < MiniTest::Spec
5
- class SongCell < Cell::ViewModel
6
- class Twin < Disposable::Twin
7
- property :title
8
- option :online?
9
- end
4
+ # class TwinTest < MiniTest::Spec
5
+ # class SongCell < Cell::ViewModel
6
+ # class Twin < Disposable::Twin
7
+ # property :title
8
+ # option :online?
9
+ # end
10
10
 
11
- include Cell::Twin
12
- twin Twin
11
+ # include Cell::Twin
12
+ # twin Twin
13
13
 
14
- def show
15
- "#{title} is #{online?}"
16
- end
14
+ # def show
15
+ # "#{title} is #{online?}"
16
+ # end
17
17
 
18
- def title
19
- super.downcase
20
- end
21
- end
18
+ # def title
19
+ # super.downcase
20
+ # end
21
+ # end
22
22
 
23
- let (:model) { OpenStruct.new(:title => "Kenny") }
23
+ # let (:model) { OpenStruct.new(:title => "Kenny") }
24
24
 
25
- it { SongCell.new( model, :online? => true).call.must_equal "kenny is true" }
26
- end
25
+ # it { SongCell.new( model, :online? => true).call.must_equal "kenny is true" }
26
+ # end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cells
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0.beta6
4
+ version: 4.0.0.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Sutterer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-04 00:00:00.000000000 Z
11
+ date: 2015-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: uber
@@ -44,20 +44,6 @@ dependencies:
44
44
  - - "<"
45
45
  - !ruby/object:Gem::Version
46
46
  version: '3'
47
- - !ruby/object:Gem::Dependency
48
- name: disposable
49
- requirement: !ruby/object:Gem::Requirement
50
- requirements:
51
- - - "~>"
52
- - !ruby/object:Gem::Version
53
- version: 0.0.8
54
- type: :runtime
55
- prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- requirements:
58
- - - "~>"
59
- - !ruby/object:Gem::Version
60
- version: 0.0.8
61
47
  - !ruby/object:Gem::Dependency
62
48
  name: rake
63
49
  requirement: !ruby/object:Gem::Requirement
@@ -106,14 +92,14 @@ dependencies:
106
92
  requirements:
107
93
  - - ">="
108
94
  - !ruby/object:Gem::Version
109
- version: 0.0.2
95
+ version: 0.0.4
110
96
  type: :development
111
97
  prerelease: false
112
98
  version_requirements: !ruby/object:Gem::Requirement
113
99
  requirements:
114
100
  - - ">="
115
101
  - !ruby/object:Gem::Version
116
- version: 0.0.2
102
+ version: 0.0.4
117
103
  description: Cells replaces partials and helpers with OOP view models, giving you
118
104
  proper encapsulation, inheritance, testability and a cleaner view architecture.
119
105
  email: