Skip to content

Commit

Permalink
Merge master and resolve conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
jhart-r7 committed Dec 11, 2015
2 parents 63a475c + 7688188 commit 1dcabe5
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ cache: bundler
language: ruby
rvm:
- '2.1'
# JRuby failing for redcarpet and shoulda-matchers gems
# < 1.7.14
- 'jruby-1.7.13'
#- 'jruby-1.7.13'
# >= 1.7.14
- 'jruby-1.7.14'
#- 'jruby-1.7.14'
script: bundle exec rake spec yard
sudo: false
2 changes: 1 addition & 1 deletion lib/metasploit/model/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module Version
# The minor version number, scoped to the {MAJOR} version number.
MINOR = 0
# The patch version number, scoped to the {MAJOR} and {MINOR} version numbers.
PATCH = 0
PATCH = 1
PRERELEASE = 'rsync-gather-realm'

#
Expand Down
2 changes: 1 addition & 1 deletion spec/app/models/metasploit/model/search/group/base_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
RSpec.describe Metasploit::Model::Search::Group::Base, type: :model do
it { is_expected.to ensure_length_of(:children).is_at_least(1) }
it { is_expected.to validate_length_of(:children).is_at_least(1) }
end
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

context 'validations' do
context 'children' do
it { is_expected.to ensure_length_of(:children).is_at_least(1).with_short_message('is too short (minimum is 1 child)') }
it { is_expected.to validate_length_of(:children).is_at_least(1).with_short_message('is too short (minimum is 1 child)') }

context '#children_valid' do
subject(:children_valid) do
Expand Down
9 changes: 9 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,12 @@
Metasploit::Model::Spec.remove_temporary_pathname
end
end

Shoulda::Matchers.configure do |config|
config.integrate do |with|
with.library :active_record
with.library :active_model

with.test_framework :rspec
end
end

0 comments on commit 1dcabe5

Please sign in to comment.