Sha256: 7a7fb4ccece2f3238b1c73263622f55e346c4b6066bf53cab09ef430b4fb709f
Contents?: true
Size: 1.26 KB
Versions: 2
Compression:
Stored size: 1.26 KB
Contents
module MegaBar require 'spec_helper' require_relative 'common' RSpec.describe MegaBar::TextreadsController, :type => :controller do include_context "common" #pretty important! let(:a_record) { create(:textread) unless model_class.first model_class.first } let(:controller_class) { MegaBar::TextreadsController } let(:model_class) { MegaBar::Textread } let(:controlller) { 'mega_bar/textreads' } let(:invalid_attributes) { { 'field_display_id' => '' } } let(:invalid_new) { {name: 'TextRead TextRead', make_block: ''} } let(:model_and_page) { create(:model_with_page, classname: 'Textread', tablename: 'mega_bar_textreads', name: 'Textreads') } let(:page_name) { 'Textreads Page' } let(:page_terms) { ['mega-bar', 'textreads'] } let(:skip_invalids) { false } let(:spec_subject) { 'textread' } let(:updated_attrs) { { 'field_display_id' => 2 } } let(:uri) { '/mega-bar/textreads' } let(:valid_attributes) {{ 'field_display_id' => '2' } } let(:valid_new) { { field_display_id: '5' } } let(:valid_session) { {} } let(:fields_and_displays) { create(:field_with_displays, field: 'field_display_id', tablename: 'mega_bar_textreads', model_display_ids: model_model_display_ids ) } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mega_bar-0.5.2 | spec/controllers/textreads_controller_spec.rb |
mega_bar-0.5.1 | spec/controllers/textreads_controller_spec.rb |