presenter-pattern 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/presenter-pattern.rb +0 -1
- data/presenter-pattern.gemspec +2 -2
- data/test/foos_controller_test.rb +6 -0
- metadata +2 -2
data/Rakefile
CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
|
|
2
2
|
require 'rake'
|
3
3
|
require 'echoe'
|
4
4
|
|
5
|
-
Echoe.new('presenter-pattern', '0.3.
|
5
|
+
Echoe.new('presenter-pattern', '0.3.5') do |p|
|
6
6
|
p.description = "Enables and enforces the presenter pattern in rails"
|
7
7
|
p.url = "https://github.com/jleven/presenter-pattern"
|
8
8
|
p.author = "Josh Leven"
|
data/lib/presenter-pattern.rb
CHANGED
data/presenter-pattern.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{presenter-pattern}
|
5
|
-
s.version = "0.3.
|
5
|
+
s.version = "0.3.5"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Josh Leven"]
|
9
|
-
s.date = %q{2011-05-
|
9
|
+
s.date = %q{2011-05-31}
|
10
10
|
s.description = %q{Enables and enforces the presenter pattern in rails}
|
11
11
|
s.email = %q{josh.leven@gmail.com}
|
12
12
|
s.extra_rdoc_files = ["README.rdoc", "lib/presenter-pattern.rb", "lib/presenter-pattern/railtie.rb"]
|
@@ -45,6 +45,12 @@ class FoosControllerTest < ActionController::TestCase
|
|
45
45
|
assert_equal "{\"name\":[\"can't be blank\"]}", @response.body
|
46
46
|
end
|
47
47
|
|
48
|
+
def test_update_success
|
49
|
+
put :update, :id => @foo.id, :foo => {:name => "New Name"}, :format => :json
|
50
|
+
assert_response :success
|
51
|
+
assert_equal "{}", @response.body
|
52
|
+
end
|
53
|
+
|
48
54
|
def test_respond_opts
|
49
55
|
get :edit, :id => @foo.id, :format => :json
|
50
56
|
assert_response 206
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: presenter-pattern
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-05-
|
12
|
+
date: 2011-05-31 00:00:00.000000000Z
|
13
13
|
dependencies: []
|
14
14
|
description: Enables and enforces the presenter pattern in rails
|
15
15
|
email: josh.leven@gmail.com
|