Skip to content

Commit 269cb54

Browse files
committed
test: add app info tests
1 parent 52852ae commit 269cb54

File tree

7 files changed

+28
-6
lines changed

7 files changed

+28
-6
lines changed

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,4 +171,8 @@ build-iPhoneSimulator/
171171
.rvmrc
172172

173173
# Used by RuboCop. Remote config files pulled in from inherit_from directive.
174-
# .rubocop-https?--*
174+
# .rubocop-https?--*
175+
176+
# Node.js Tools for Visual Studio
177+
.ntvs_analysis.dat
178+
node_modules/

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ GEM
1111
specs:
1212
CFPropertyList (3.0.5)
1313
rexml
14-
activesupport (6.1.4.6)
14+
activesupport (6.1.4.7)
1515
concurrent-ruby (~> 1.0, >= 1.0.2)
1616
i18n (>= 1.6, < 2)
1717
minitest (>= 5.1)

Rakefile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,16 @@ task :specs do
99
sh "bundle exec bacon #{specs('**')}"
1010
end
1111

12+
desc 'Setup example project'
13+
task :demo do
14+
system('bundle install', exception: true)
15+
Bundler.with_clean_env do
16+
Dir.chdir('example/ios_app') do |path|
17+
system('bundle install', exception: true)
18+
system('bundle exec pod install', exception: true)
19+
end
20+
end
21+
end
22+
1223
task :default => :specs
1324

example/ios_app/Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
source 'https://rubygems.org'
22

3-
gem 'cocoapods', '~> 1.11.2'
3+
gem 'cocoapods'
44
gem 'cocoapods-embed-flutter', :path => '../../'

example/ios_app/Gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ GEM
1111
specs:
1212
CFPropertyList (3.0.5)
1313
rexml
14-
activesupport (6.1.4.6)
14+
activesupport (6.1.4.7)
1515
concurrent-ruby (~> 1.0, >= 1.0.2)
1616
i18n (>= 1.6, < 2)
1717
minitest (>= 5.1)
@@ -101,7 +101,7 @@ PLATFORMS
101101
universal-darwin-21
102102

103103
DEPENDENCIES
104-
cocoapods (~> 1.11.2)
104+
cocoapods
105105
cocoapods-embed-flutter!
106106

107107
BUNDLED WITH

spec/info_spec.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
require_relative 'spec_helper'
2+
3+
describe 'Plugin info test' do
4+
it 'checks name' do
5+
CocoapodsEmbedFlutter::NAME.should.equal 'cocoapods-embed-flutter'
6+
end
7+
end

spec/spec_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
require 'pathname'
1111
require 'cocoapods'
1212

13-
Mocha::Configuration.prevent(:stubbing_non_existent_method)
13+
Mocha.configure { |c| c.stubbing_non_existent_method = :prevent }
1414

1515
require 'cocoapods_plugin'
1616

0 commit comments

Comments
 (0)