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 CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
  require 'rake'
3
3
  require 'echoe'
4
4
 
5
- Echoe.new('presenter-pattern', '0.3.4') do |p|
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"
@@ -41,7 +41,6 @@ module PresenterPattern
41
41
  end
42
42
 
43
43
  def self.do_included(host_class, *formats)
44
- host_class.layout nil
45
44
  host_class.respond_to *formats
46
45
  host_class.extend PresenterPattern::API::ClassMethods
47
46
  end
@@ -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.4"
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-26}
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
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-26 00:00:00.000000000Z
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