Skip to content

Commit

Permalink
test: add app info tests
Browse files Browse the repository at this point in the history
  • Loading branch information
soumyamahunt committed Mar 9, 2022
1 parent 52852ae commit 269cb54
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 6 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -171,4 +171,8 @@ build-iPhoneSimulator/
.rvmrc

# Used by RuboCop. Remote config files pulled in from inherit_from directive.
# .rubocop-https?--*
# .rubocop-https?--*

# Node.js Tools for Visual Studio
.ntvs_analysis.dat
node_modules/
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ GEM
specs:
CFPropertyList (3.0.5)
rexml
activesupport (6.1.4.6)
activesupport (6.1.4.7)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 1.6, < 2)
minitest (>= 5.1)
Expand Down
11 changes: 11 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,16 @@ task :specs do
sh "bundle exec bacon #{specs('**')}"
end

desc 'Setup example project'
task :demo do
system('bundle install', exception: true)
Bundler.with_clean_env do
Dir.chdir('example/ios_app') do |path|
system('bundle install', exception: true)
system('bundle exec pod install', exception: true)
end
end
end

task :default => :specs

2 changes: 1 addition & 1 deletion example/ios_app/Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
source 'https://rubygems.org'

gem 'cocoapods', '~> 1.11.2'
gem 'cocoapods'
gem 'cocoapods-embed-flutter', :path => '../../'
4 changes: 2 additions & 2 deletions example/ios_app/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ GEM
specs:
CFPropertyList (3.0.5)
rexml
activesupport (6.1.4.6)
activesupport (6.1.4.7)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 1.6, < 2)
minitest (>= 5.1)
Expand Down Expand Up @@ -101,7 +101,7 @@ PLATFORMS
universal-darwin-21

DEPENDENCIES
cocoapods (~> 1.11.2)
cocoapods
cocoapods-embed-flutter!

BUNDLED WITH
Expand Down
7 changes: 7 additions & 0 deletions spec/info_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
require_relative 'spec_helper'

describe 'Plugin info test' do
it 'checks name' do
CocoapodsEmbedFlutter::NAME.should.equal 'cocoapods-embed-flutter'
end
end
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
require 'pathname'
require 'cocoapods'

Mocha::Configuration.prevent(:stubbing_non_existent_method)
Mocha.configure { |c| c.stubbing_non_existent_method = :prevent }

require 'cocoapods_plugin'

Expand Down

0 comments on commit 269cb54

Please sign in to comment.