You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
require 'test_helper'
class AccountFeatTest < ActiveSupport::TestCase
should have_db_column :name
should have_db_column :display_name
should have_db_column :description_on
should have_db_column :description_off
should have_many :account_feat_statuses
end
require 'test_helper'
class ParserTest < ActiveSupport::TestCase
include BehaviourTestBase
setup do
@setup = true
end
end
test/helpers/behaviour_test_base.rb
module BehaviourTestBase
extend ActiveSupport::Concern
included do
context 'email location' do
setup do
@location = 'Fredericton'
end
context 'only note in reply' do
should 'create note for crm account' do
assert @location
end
end
end
end
end
When I run test/models/parser_test.rb tt generates logs as follows, whereas it should be test/models/parser_test.rb:8.79
test/helpers/behaviour_test_base.rb:8.79
The text was updated successfully, but these errors were encountered:
Example
Senario 1:
On using shoulda matchers
test/models/account_feat_test.rb
Generates following logs
Senario 2:
test/models/parser_test.rb
test/helpers/behaviour_test_base.rb
When I run
test/models/parser_test.rb
tt generates logs as follows, whereas it should betest/models/parser_test.rb:8.79
The text was updated successfully, but these errors were encountered: