smarter_listing 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 70f88de0c2e0562f77305277dd215df009cb0bdd
4
- data.tar.gz: 6add066aef47d3fb1831ffaaf12edf810961b688
3
+ metadata.gz: 7fe16dceef655bf333e6334a686a84711c867ca9
4
+ data.tar.gz: 12cd67339fae29899ccf6306702bcc4e10fdb326
5
5
  SHA512:
6
- metadata.gz: 423fe0bc8425dbca1919afd3855267d3902119bcdb42cd70cf411d95b57228bee79c3e752fdcf5309a7b599c032d77563e86ac52d31c4b66595f866bb2034a7f
7
- data.tar.gz: 5fbfee5e5da862d6d9b1f07873a1da49c3f3d6e7eec1b60c1914e2484f0f81f1833427ec93a434376476ce70368ef9d416874c63795938a064fe8d2d07781b97
6
+ metadata.gz: b01c7e9dccb979d1fcc60512f93300f81a6e8da69494431ab42c979906884fedd1316f300abf28b5a05081d1332485a496db663d57d1afea3edcf84369a7eec5
7
+ data.tar.gz: 6f9e06c26878c1ddb48e5a88053cc4a46fd133739b773400f1ba0496a4d29276516dd8b713fc630c20bf34b53720b96b7317e5605f8fd765f6f7e2b8c73fea0e
@@ -8,7 +8,7 @@ module SmarterListing::ControllerExtension
8
8
  define_method :index do
9
9
  collection
10
10
  respond_to do |format|
11
- format.html
11
+ format.html { render layout: self.class._layout }
12
12
  format.js { render action: 'index.js.erb' }
13
13
  end
14
14
  end
@@ -1,3 +1,3 @@
1
1
  module SmarterListing
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
@@ -8,6 +8,11 @@ class ListingsControllerTest < ActionController::TestCase
8
8
  ListingsController.smarter_listing
9
9
  end
10
10
 
11
+ test 'correct layout' do
12
+ get :index
13
+ assert_template 'default'
14
+ end
15
+
11
16
  test 'should have the methods from all helpers' do
12
17
  assert_includes @controller.methods, :create
13
18
  assert_includes @controller.methods, :show
@@ -2,4 +2,6 @@ class ApplicationController < ActionController::Base
2
2
  # Prevent CSRF attacks by raising an exception.
3
3
  # For APIs, you may want to use :null_session instead.
4
4
  protect_from_forgery with: :exception
5
+
6
+ layout 'default'
5
7
  end
Binary file