mighty_grid 0.0.6 → 0.1.0

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: 28a9d936cc145275674c22df2de88c431524ae5b
4
- data.tar.gz: 4e6db4d74e7ba04cdda5562d819a94d23982b8c1
3
+ metadata.gz: 471b2069ac7d3edef74750b36042b2a03211677d
4
+ data.tar.gz: 4ef8c26232ba12dc5e82422ffaa7512bb3817a73
5
5
  SHA512:
6
- metadata.gz: f037624c6a4f702cc5fa535eb774fdfa9a6cb2fc1cb2c623d734e202c87ef1be3c2fb2234e7c69c3c93de68ea899094ca8602218d9ac821b3beeaeb84768b6ac
7
- data.tar.gz: 27beaa0e88adbe6ca4108b74aa6c49ac16b070173b7a45de5cc0d232248c2c6a1cf85cdb040a28dcf304755586de2e7988ba587c13e27a1637aa379daacc1872
6
+ metadata.gz: 25e7294b0ef6daffd9b0b6f20bc227ff7b1931b50f9522bb8795d2e354f8cd6f84480fa9180da24c1dc54c0e0779373c1a2fec44ec455be65698caef0da738f9
7
+ data.tar.gz: 51dfc0a4927e00f0c441e5ae996c8bdc5d86d239784cb0aac80927821b4cfe274cba26a946cba1573b685db2d97842284c91a7f5909904a334c1949097de3e18
data/.gitignore CHANGED
@@ -16,3 +16,4 @@ spec/reports
16
16
  test/tmp
17
17
  test/version_tmp
18
18
  tmp
19
+ log
data/.rspec CHANGED
@@ -1,2 +1,2 @@
1
1
  --color
2
- --format progress
2
+ --format documentation
data/.travis.yml CHANGED
@@ -4,9 +4,12 @@ rvm:
4
4
  - 2.0.0
5
5
  - 2.1.1
6
6
 
7
- script: bundle exec rspec spec
7
+ script: bundle exec rake spec
8
+
9
+ env:
10
+ CODECLIMATE_REPO_TOKEN: 47bc411a11ccfed015bf25395d8204600c899e530c1c4beed1b7197aa61c6fb6
8
11
 
9
12
  gemfile:
10
- - gemfiles/3.2.gemfile
11
- - gemfiles/4.0.gemfile
12
- - gemfiles/4.1.gemfile
13
+ - gemfiles/rails_32.gemfile
14
+ - gemfiles/rails_40.gemfile
15
+ - gemfiles/rails_41.gemfile
data/Appraisals CHANGED
@@ -1,14 +1,14 @@
1
- appraise "3.2" do
1
+ appraise "rails_32" do
2
2
  gem "rails", "~> 3.2.15"
3
- gem "mighty_grid", :path => "../"
3
+ gem "activerecord", "~> 3.2.15", require: 'active_record'
4
4
  end
5
5
 
6
- appraise "4.0" do
6
+ appraise "rails_40" do
7
7
  gem "rails", "~> 4.0.0"
8
- gem "mighty_grid", :path => "../"
8
+ gem "activerecord", "~> 4.0.0", require: 'active_record'
9
9
  end
10
10
 
11
- appraise "4.1" do
12
- gem "rails", "~> 4.1.0.beta"
13
- gem "mighty_grid", :path => "../"
11
+ appraise "rails_41" do
12
+ gem "rails", "~> 4.1.0"
13
+ gem "activerecord", "~> 4.1.0", require: 'active_record'
14
14
  end
data/Gemfile CHANGED
@@ -3,6 +3,10 @@ source 'https://rubygems.org'
3
3
  gemspec
4
4
 
5
5
  group :test do
6
+ gem 'sqlite3'
6
7
  gem "generator_spec"
7
8
  gem 'coveralls', require: false
9
+ gem "codeclimate-test-reporter", require: nil
10
+ gem 'capybara'
11
+ gem 'database_cleaner'
8
12
  end
data/README.md CHANGED
@@ -1,11 +1,6 @@
1
- # MightyGrid
1
+ # MightyGrid [![Gem Version](http://img.shields.io/gem/v/mighty_grid.svg)](http://badge.fury.io/rb/mighty_grid) [![Build Status](https://travis-ci.org/jurrick/mighty_grid.svg?branch=master)](https://travis-ci.org/jurrick/mighty_grid) [![Code Climate](https://codeclimate.com/github/jurrick/mighty_grid.png)](https://codeclimate.com/github/jurrick/mighty_grid) [![Inline docs](http://inch-pages.github.io/github/jurrick/mighty_grid.png)](http://inch-pages.github.io/github/jurrick/mighty_grid)
2
2
 
3
- MightyGrid is a flexible grid solution for Rails.
4
-
5
- [![Gem Version](https://badge.fury.io/rb/mighty_grid.svg)](http://badge.fury.io/rb/mighty_grid)
6
- [![Build Status](https://travis-ci.org/jurrick/mighty_grid.svg?branch=master)](https://travis-ci.org/jurrick/mighty_grid)
7
- [![Coverage Status](https://coveralls.io/repos/jurrick/mighty_grid/badge.png)](https://coveralls.io/r/jurrick/mighty_grid)
8
- [![Inline docs](http://inch-pages.github.io/github/jurrick/mighty_grid.png)](http://inch-pages.github.io/github/jurrick/mighty_grid)
3
+ MightyGrid is a flexible grid solution for Ruby On Rails.
9
4
 
10
5
  ## Installation
11
6
 
data/Rakefile CHANGED
@@ -1,6 +1,32 @@
1
+ require 'bundler'
2
+ Bundler::GemHelper.install_tasks
3
+
1
4
  require "bundler/gem_tasks"
2
5
  require 'appraisal'
6
+ require 'rspec/core'
3
7
  require 'rspec/core/rake_task'
4
8
 
9
+ RSpec::Core::RakeTask.new(:spec) do |spec|
10
+ spec.pattern = FileList['spec/**/*_spec.rb']
11
+ end
12
+
5
13
  desc 'Default: run unit tests.'
6
- task :default => []
14
+ task :default => "spec:all"
15
+
16
+ namespace :spec do
17
+ %w(rails_32 rails_40 rails_41).each do |gemfile|
18
+ desc "Run tests against #{gemfile}"
19
+ task gemfile do
20
+ sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle --quiet"
21
+ sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle exec rake -t spec"
22
+ end
23
+ end
24
+
25
+ desc "Run all tests"
26
+ task :all do
27
+ %w(rails_32 rails_40 rails_41).each do |gemfile|
28
+ sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle --quiet"
29
+ sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle exec rake spec"
30
+ end
31
+ end
32
+ end
@@ -3,11 +3,15 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "rails", "~> 3.2.15"
6
- gem "mighty_grid", :path => "../"
6
+ gem "activerecord", "~> 3.2.15", :require => "active_record"
7
7
 
8
8
  group :test do
9
+ gem "sqlite3"
9
10
  gem "generator_spec"
10
11
  gem "coveralls", :require => false
12
+ gem "codeclimate-test-reporter", :require => nil
13
+ gem "capybara"
14
+ gem "database_cleaner"
11
15
  end
12
16
 
13
17
  gemspec :path => "../"
@@ -3,11 +3,15 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "rails", "~> 4.0.0"
6
- gem "mighty_grid", :path => "../"
6
+ gem "activerecord", "~> 4.0.0", :require => "active_record"
7
7
 
8
8
  group :test do
9
+ gem "sqlite3"
9
10
  gem "generator_spec"
10
11
  gem "coveralls", :require => false
12
+ gem "codeclimate-test-reporter", :require => nil
13
+ gem "capybara"
14
+ gem "database_cleaner"
11
15
  end
12
16
 
13
17
  gemspec :path => "../"
@@ -0,0 +1,17 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "~> 4.1.0"
6
+ gem "activerecord", "~> 4.1.0", :require => "active_record"
7
+
8
+ group :test do
9
+ gem "sqlite3"
10
+ gem "generator_spec"
11
+ gem "coveralls", :require => false
12
+ gem "codeclimate-test-reporter", :require => nil
13
+ gem "capybara"
14
+ gem "database_cleaner"
15
+ end
16
+
17
+ gemspec :path => "../"
@@ -78,7 +78,7 @@ module MightyGrid
78
78
  end
79
79
 
80
80
  def order_direction
81
- (current_grid_params.has_key?('order_direction')) ? (['asc', 'desc'] - [current_grid_params['order_direction']]).first : MightyGrid.config.order_direction
81
+ (current_grid_params.has_key?('order_direction')) ? (['asc', 'desc'] - [current_grid_params['order_direction'].to_s]).first : MightyGrid.config.order_direction
82
82
  end
83
83
 
84
84
  def like_operator
@@ -16,50 +16,12 @@ module MightyGrid
16
16
  table_html_classes = ["mighty-grid"] + MightyGrid.config.table_class.split(' ')
17
17
  table_html_attrs[:class] = (table_html_classes + table_html_attrs[:class].split(' ')).reject(&:blank?).uniq.join(' ')
18
18
 
19
- header_tr_html = options[:header_tr_html] || {}
20
- header_tr_html[:class] ||= ''
21
- header_tr_html_classes = MightyGrid.config.header_tr_class.split(' ')
22
- header_tr_html[:class] = (header_tr_html_classes + header_tr_html[:class].split(' ')).reject(&:blank?).uniq.join(' ')
23
-
24
19
  grid.read
25
20
 
26
21
  grid.output_buffer = content_tag :table, table_html_attrs do
27
- html = content_tag :thead do
28
- content_tag :tr, header_tr_html do
29
- rendering.columns.map { |column|
30
- content_tag :th, column.th_attrs do
31
- if column.options[:ordering]
32
- link_to(column.title, "?#{MightyGrid::MgHash.rec_merge(grid.params, {grid.name => {order: column.attribute, order_direction: grid.order_direction}}).except('controller', 'action').to_query}").html_safe
33
- else
34
- column.title.html_safe
35
- end
36
- end
37
- }.join.html_safe
38
- end
39
- end
40
-
41
- html += content_tag :tfoot do
42
- html_record = content_tag :tr do
43
- content_tag :td, colspan: rendering.total_columns do
44
- html_pag = paginate(grid.relation, theme: MightyGrid.config.pagination_theme, param_name: "#{grid.name}[page]")
45
- html_pag += page_entries_info(grid.relation)
46
- html_pag.html_safe
47
- end
48
- end
49
-
50
- html_record.html_safe
51
- end
52
-
53
- html += content_tag :tbody do
54
- html_record = ''
55
- grid.relation.each do |rel|
56
- html_record += content_tag :tr do
57
- rendering.columns.map{|column| content_tag :td, column.render(rel), column.attrs}.join.html_safe
58
- end
59
- end
60
- html_record.html_safe
61
- end
62
-
22
+ html = header_grid_html(rendering, grid, options)
23
+ html += footer_grid_html(rendering, grid)
24
+ html += body_grid_html(rendering, grid)
63
25
  html
64
26
  end
65
27
 
@@ -71,6 +33,8 @@ module MightyGrid
71
33
 
72
34
  def mighty_filter_for(grid, options={}, &block)
73
35
  html_options = options[:html] ||= {}
36
+ html_options[:class] ||= ''
37
+ html_options[:class] = (['mighty-grid-filter'] + html_options[:class].split(' ')).reject(&:blank?).uniq.join(' ')
74
38
  html_options[:method] = options.delete(:method) if options.has_key?(:method)
75
39
  html_options[:method] ||= :get
76
40
 
@@ -80,5 +44,54 @@ module MightyGrid
80
44
  form_tag(options[:url] || {}, html_options){ output }
81
45
  end
82
46
 
47
+ def header_grid_html(rendering, grid, options)
48
+ header_tr_html = options[:header_tr_html] || {}
49
+ header_tr_html[:class] ||= ''
50
+ header_tr_html_classes = MightyGrid.config.header_tr_class.split(' ')
51
+ header_tr_html[:class] = (header_tr_html_classes + header_tr_html[:class].split(' ')).reject(&:blank?).uniq.join(' ')
52
+
53
+ content_tag :thead do
54
+ content_tag :tr, header_tr_html do
55
+ rendering.columns.map { |column|
56
+ content_tag :th, column.th_attrs do
57
+ if column.options[:ordering]
58
+ link_to(column.title, "?#{MightyGrid::MgHash.rec_merge(grid.params, {grid.name => {order: column.attribute, order_direction: grid.order_direction}}).except('controller', 'action').to_query}").html_safe
59
+ else
60
+ column.title.html_safe
61
+ end
62
+ end
63
+ }.join.html_safe
64
+ end
65
+ end
66
+ end
67
+
68
+ def body_grid_html(rendering, grid)
69
+ content_tag :tbody do
70
+ html_record = ''
71
+ grid.relation.each do |rel|
72
+ html_record += content_tag :tr do
73
+ rendering.columns.map{|column| content_tag :td, column.render(rel), column.attrs}.join.html_safe
74
+ end
75
+ end
76
+ html_record.html_safe
77
+ end
78
+ end
79
+
80
+ def footer_grid_html(rendering, grid)
81
+ content_tag :tfoot do
82
+ html_record = content_tag :tr do
83
+ content_tag :td, colspan: rendering.total_columns do
84
+ html_pag = paginate(grid.relation, theme: MightyGrid.config.pagination_theme, param_name: "#{grid.name}[page]")
85
+ html_pag += content_tag :strong do
86
+ "#{grid.relation.offset_value + 1} – #{grid.relation.offset_value + grid.relation.size} of #{grid.relation.total_count}".html_safe
87
+ end
88
+ html_pag.html_safe
89
+ end
90
+ end
91
+
92
+ html_record.html_safe
93
+ end
94
+ end
95
+
83
96
  end
84
97
  end
@@ -1,3 +1,3 @@
1
1
  module MightyGrid
2
- VERSION = "0.0.6"
2
+ VERSION = "0.1.0"
3
3
  end
data/lib/mighty_grid.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  module MightyGrid; end
2
2
 
3
3
  require 'action_view'
4
+ require 'kaminari'
4
5
 
5
6
  require 'mighty_grid/version'
6
7
  require 'mighty_grid/config'
@@ -15,7 +16,5 @@ require 'mighty_grid/mighty_grid_controller'
15
16
  # GENERATORS
16
17
  require 'generators/mighty_grid/config_generator'
17
18
 
18
- require 'kaminari.rb'
19
-
20
19
  require 'mighty_grid/engine'
21
20
  require 'mighty_grid/base'
@@ -0,0 +1,11 @@
1
+ class Product < ActiveRecord::Base
2
+ end
3
+
4
+ #migrations
5
+ class CreateAllTables < ActiveRecord::Migration
6
+ def self.up
7
+ create_table(:products) { |t| t.string :name }
8
+ end
9
+ end
10
+ ActiveRecord::Migration.verbose = false
11
+ CreateAllTables.up
@@ -0,0 +1,2 @@
1
+ ActiveRecord::Base.configurations = {'test' => {:adapter => 'sqlite3', :database => ':memory:'}}
2
+ ActiveRecord::Base.establish_connection(:test)
@@ -0,0 +1,43 @@
1
+ require 'action_controller/railtie'
2
+ require 'action_view/railtie'
3
+
4
+ require 'capybara/rspec'
5
+
6
+ require 'fake_app/models/config'
7
+
8
+ app = Class.new(Rails::Application)
9
+ app.config.secret_token = '7295e7f2718c940f459e5062f575cd92'
10
+ app.config.session_store :cookie_store, :key => '_myapp_session'
11
+ app.config.active_support.deprecation = :log
12
+ app.config.eager_load = false
13
+
14
+ # Rais.root
15
+ app.config.root = File.dirname(__FILE__)
16
+ Rails.backtrace_cleaner.remove_silencers!
17
+ app.initialize!
18
+
19
+ # ROUTES
20
+ app.routes.draw do
21
+ resources :products
22
+ end
23
+
24
+ # MODELS
25
+ require 'fake_app/models/active_record'
26
+
27
+ # CONTROLLERS
28
+ class ApplicationController < ActionController::Base; end
29
+ class ProductsController < ApplicationController
30
+ def index
31
+ @products_grid = init_grid(Product)
32
+ render :inline => <<-ERB
33
+ <%= grid @products_grid do |g| %>
34
+ <% g.column :name %>
35
+ <% end %>
36
+ ERB
37
+ end
38
+ end
39
+
40
+ # HELPERS
41
+ Object.const_set(:ApplicationHelper, Module.new)
42
+
43
+ Capybara.app = app
@@ -0,0 +1,53 @@
1
+ require 'spec_helper'
2
+
3
+ describe MightyGrid::Base do
4
+
5
+ before(:all) do
6
+ @controller = ActionView::TestCase::TestController.new
7
+
8
+ @default_options = {page: 1, per_page: 15, name: 'grid'}
9
+ end
10
+
11
+ describe '#new' do
12
+ context 'by default' do
13
+ subject { MightyGrid::Base.new(Product, @controller) }
14
+ its(:params) { should == {} }
15
+ its(:options) { should == @default_options }
16
+ its(:mg_params) { should == @default_options }
17
+ its(:filters) { should == {} }
18
+ its(:name) { should == 'grid' }
19
+ its(:relation) { should == Product }
20
+ its(:klass) { should == Product }
21
+ its(:current_grid_params) { should == {} }
22
+ its(:order_direction) { should == MightyGrid.config.order_direction }
23
+ its(:filter_param_name) { should == 'f' }
24
+ context 'controller' do
25
+ it { instance_variable_get(:@controller).should == @controller }
26
+ end
27
+ end
28
+
29
+ context 'with custom' do
30
+ subject { MightyGrid::Base.new(Product, @controller, page: 2, per_page: 10, name: 'grid1') }
31
+ its(:options) { should == {page: 2, per_page: 10, name: 'grid1'} }
32
+ end
33
+
34
+ context 'with custom' do
35
+ before(:all){ @controller.params = {'grid' => {page: 5, per_page: 30, name: 'grid2'}} }
36
+ subject { MightyGrid::Base.new(Product, @controller) }
37
+ its(:params) { should == @controller.params }
38
+ its(:mg_params) { should == {page: 5, per_page: 30, name: 'grid2'} }
39
+ after(:all){ @controller.params = {} }
40
+ end
41
+
42
+ context 'with bad options' do
43
+ it { expect{MightyGrid::Base.new(Product, @controller, bad_option: 123)}.to raise_error(ArgumentError) }
44
+ end
45
+ end
46
+
47
+ describe '#get_current_grid_param' do
48
+ before(:all){ @controller.params = {'grid'=>{per_page: 30}} }
49
+ subject { MightyGrid::Base.new(Product, @controller).get_current_grid_param(:per_page) }
50
+ it { should == 30 }
51
+ end
52
+
53
+ end
@@ -0,0 +1,15 @@
1
+ require 'spec_helper'
2
+
3
+ feature 'Product' do
4
+ background { 1.upto(100) {|i| Product.create! :name => "product#{'%03d' % i}" } }
5
+
6
+ subject { page }
7
+
8
+ describe "Index Page" do
9
+ before { visit '/products' }
10
+
11
+ it { should have_selector('table.mighty-grid') }
12
+ it { should have_selector('ul.pagination') }
13
+ end
14
+
15
+ end
data/spec/spec_helper.rb CHANGED
@@ -13,14 +13,18 @@ Bundler.require
13
13
  require 'coveralls'
14
14
  Coveralls.wear!
15
15
 
16
+ require "codeclimate-test-reporter"
17
+ CodeClimate::TestReporter.start
18
+
19
+ if defined? Rails
20
+ require 'fake_app/rails_app'
21
+ require 'rspec-rails'
22
+ end
23
+
24
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
25
+
16
26
  RSpec.configure do |config|
17
27
  config.treat_symbols_as_metadata_keys_with_true_values = true
18
28
  config.run_all_when_everything_filtered = true
19
29
  config.filter_run :focus
20
-
21
- # Run specs in random order to surface order dependencies. If you find an
22
- # order dependency and want to debug it, you can fix the order by providing
23
- # the seed, which is printed after each run.
24
- # --seed 1234
25
- config.order = 'random'
26
30
  end
@@ -0,0 +1,10 @@
1
+ require 'capybara/rspec'
2
+ require 'capybara/dsl'
3
+
4
+ RSpec.configure do |config|
5
+ config.include Capybara::DSL
6
+ end
7
+
8
+ Capybara.configure do |config|
9
+ config.run_server = false
10
+ end
@@ -0,0 +1,13 @@
1
+ require 'database_cleaner'
2
+
3
+ RSpec.configure do |config|
4
+ config.before :suite do
5
+ DatabaseCleaner.clean_with :truncation
6
+ end
7
+ config.before :each do
8
+ DatabaseCleaner.start
9
+ end
10
+ config.after :each do
11
+ DatabaseCleaner.clean
12
+ end
13
+ end
@@ -0,0 +1,6 @@
1
+ $ ->
2
+ $(document).on 'reset', '.mighty-grid-filter', (e) ->
3
+ $(e.target).find('[type="hidden"].clear_required').val('')
4
+ url = window.location.href.split('?')
5
+ if url.length > 1
6
+ window.location.replace(url[0])
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mighty_grid
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - jurrick
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-27 00:00:00.000000000 Z
11
+ date: 2014-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -102,9 +102,9 @@ files:
102
102
  - app/views/kaminari/mighty_grid/_page.html.erb
103
103
  - app/views/kaminari/mighty_grid/_paginator.html.erb
104
104
  - app/views/kaminari/mighty_grid/_prev_page.html.erb
105
- - gemfiles/3.2.gemfile
106
- - gemfiles/4.0.gemfile
107
- - gemfiles/4.1.gemfile
105
+ - gemfiles/rails_32.gemfile
106
+ - gemfiles/rails_40.gemfile
107
+ - gemfiles/rails_41.gemfile
108
108
  - lib/generators/mighty_grid/config_generator.rb
109
109
  - lib/generators/mighty_grid/templates/mighty_grid_config.rb
110
110
  - lib/mighty_grid.rb
@@ -122,9 +122,16 @@ files:
122
122
  - lib/mighty_grid/version.rb
123
123
  - mighty_grid.gemspec
124
124
  - spec/config_spec.rb
125
+ - spec/fake_app/models/active_record.rb
126
+ - spec/fake_app/models/config.rb
127
+ - spec/fake_app/rails_app.rb
128
+ - spec/lib/base_spec.rb
125
129
  - spec/lib/generators/config_generator_spec.rb
126
- - spec/mighty_grid_spec.rb
130
+ - spec/requests/products_spec.rb
127
131
  - spec/spec_helper.rb
132
+ - spec/support/capybara.rb
133
+ - spec/support/database_cleaner.rb
134
+ - vendor/assets/javascripts/mighty_grid.js.coffee
128
135
  - vendor/assets/stylesheets/mighty_grid.css
129
136
  homepage: http://github.com/jurrick/mighty_grid
130
137
  licenses:
@@ -152,6 +159,12 @@ specification_version: 4
152
159
  summary: Flexible grid for Rails
153
160
  test_files:
154
161
  - spec/config_spec.rb
162
+ - spec/fake_app/models/active_record.rb
163
+ - spec/fake_app/models/config.rb
164
+ - spec/fake_app/rails_app.rb
165
+ - spec/lib/base_spec.rb
155
166
  - spec/lib/generators/config_generator_spec.rb
156
- - spec/mighty_grid_spec.rb
167
+ - spec/requests/products_spec.rb
157
168
  - spec/spec_helper.rb
169
+ - spec/support/capybara.rb
170
+ - spec/support/database_cleaner.rb
data/gemfiles/4.1.gemfile DELETED
@@ -1,13 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "rails", "~> 4.1.0.beta"
6
- gem "mighty_grid", :path => "../"
7
-
8
- group :test do
9
- gem "generator_spec"
10
- gem "coveralls", :require => false
11
- end
12
-
13
- gemspec :path => "../"
@@ -1,7 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe MightyGrid::Base do
4
-
5
- # it { pending }
6
-
7
- end