source stringclasses 1
value | repo stringlengths 5 63 | repo_url stringlengths 24 82 | path stringlengths 5 167 | language stringclasses 1
value | license stringclasses 5
values | stars int64 10 51.4k | ref stringclasses 23
values | size_bytes int64 200 258k | text stringlengths 137 258k |
|---|---|---|---|---|---|---|---|---|---|
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/set_pod_key_spec.rb | Ruby | mit | 41,450 | master | 1,905 | describe Fastlane do
describe Fastlane::FastFile do
describe "CocoaPods-Keys Integration" do
it "default use case" do
allow(FastlaneCore::FastlaneFolder).to receive(:path).and_return(nil)
result = Fastlane::FastFile.new.parse("lane :test do
set_pod_key(
key: 'APIToken',... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/sourcedocs_spec.rb | Ruby | mit | 41,450 | master | 11,019 | describe Fastlane do
describe Fastlane::FastFile do
describe "SourceDocs" do
context "when specify output path" do
it "default use case" do
result = Fastlane::FastFile.new.parse("lane :test do
sourcedocs(
output_folder: 'docs'
)
end").runner.... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/upload_symbols_to_crashlytics_spec.rb | Ruby | mit | 41,450 | master | 8,127 | describe Fastlane do
describe Fastlane::FastFile do
describe "upload_symbols_to_crashlytics" do
before :each do
allow(FastlaneCore::FastlaneFolder).to receive(:path).and_return(nil)
end
it "uploads dSYM files with app_id" do
binary_path = './spec/fixtures/screenshots/screenshot1... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/default_platform_spec.rb | Ruby | mit | 41,450 | master | 1,690 | describe Fastlane do
describe Fastlane::FastFile do
describe "Default Platform Action" do
it "stores the default platform and converts to a symbol" do
Fastlane::Actions::DefaultPlatformAction.run(['ios'])
expect(Fastlane::Actions.lane_context[Fastlane::Actions::SharedValues::DEFAULT_PLATFORM... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/adb_spec.rb | Ruby | mit | 41,450 | master | 7,428 | describe Fastlane do
describe Fastlane::FastFile do
describe "adb" do
it "calls AdbHelper to trigger command" do
expect_any_instance_of(Fastlane::Helper::AdbHelper)
.to receive(:trigger)
.with(command: "fake command", serial: "fake serial")
.and_return("some stub adb re... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/delete_keychain_spec.rb | Ruby | mit | 41,450 | master | 3,677 | describe Fastlane do
describe Fastlane::FastFile do
describe "Delete keychain Integration" do
before :each do
allow(File).to receive(:file?).and_return(false)
end
it "works with keychain name found locally" do
allow(FastlaneCore::FastlaneFolder).to receive(:path).and_return(nil)... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/pod_lib_lint_spec.rb | Ruby | mit | 41,450 | master | 6,106 | describe Fastlane do
describe Fastlane::FastFile do
describe "Pod Lib Lint action" do
before :each do
allow(FastlaneCore::FastlaneFolder).to receive(:path).and_return(nil)
end
it "generates the correct pod lib lint command with no parameters" do
result = Fastlane::FastFile.new.p... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/xcversion_spec.rb | Ruby | mit | 41,450 | master | 5,179 | describe Fastlane do
describe Fastlane::FastFile do
describe "xcversion integration" do
after(:each) do
ENV.delete("DEVELOPER_DIR")
end
context "when a version requirement is specified" do
let(:v7_2) do
double("XcodeInstall::Xcode", version: "7.2", path: "/Test/Xcode7.... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/jazzy_spec.rb | Ruby | mit | 41,450 | master | 827 | describe Fastlane do
describe Fastlane::FastFile do
describe "Jazzy" do
it "default use case" do
result = Fastlane::FastFile.new.parse("lane :test do
jazzy
end").runner.execute(:test)
expect(result).to eq("jazzy")
end
it "add config option" do
result =... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/erb_spec.rb | Ruby | mit | 41,450 | master | 1,676 | describe Fastlane do
describe Fastlane::FastFile do
describe "ERB template" do
let(:template) { File.expand_path("./fastlane/spec/fixtures/templates/dummy_html_template.erb") }
let(:destination) { "/tmp/fastlane/template.html" }
it "generate template without placeholders" do
result = Fa... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/set_info_plist_value_spec.rb | Ruby | mit | 41,450 | master | 2,582 | describe Fastlane do
describe Fastlane::FastFile do
describe "set_info_plist" do
let(:plist_path) { "./fastlane/spec/fixtures/plist/Info.plist" }
let(:test_path) { "/tmp/fastlane/tests/fastlane" }
let(:output_path) { "Folder/output.plist" }
let(:new_value) { "NewValue#{Time.now.to_i}" }
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/notification_spec.rb | Ruby | mit | 41,450 | master | 3,952 | describe Fastlane do
describe Fastlane::FastFile do
describe "notification action" do
it "raises without a message" do
expect do
Fastlane::FastFile.new.parse("lane :test do
notification(
title: 'hello',
subtitle: 'hi'
)
end").ru... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/adb_devices_spec.rb | Ruby | mit | 41,450 | master | 1,019 | describe Fastlane do
describe Fastlane::FastFile do
describe "adb_devices" do
it "generates an empty list of devices" do
result = Fastlane::FastFile.new.parse("lane :test do
adb_devices(adb_path: '/some/path/to/adb')
end").runner.execute(:test)
expect(result).to match_arra... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/add_git_tag_spec.rb | Ruby | mit | 41,450 | master | 8,569 | describe Fastlane do
describe Fastlane::FastFile do
describe "Add Git Tag Integration" do
require 'shellwords'
build_number = 1337
before :each do
Fastlane::Actions.lane_context[Fastlane::Actions::SharedValues::BUILD_NUMBER] = build_number
end
context "when 'includes_lane'... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/changelog_from_git_commits_spec.rb | Ruby | mit | 41,450 | master | 9,902 | describe Fastlane do
describe Fastlane::FastFile do
describe "changelog_from_git_commits" do
it "Collects messages from the last tag to HEAD by default" do
result = Fastlane::FastFile.new.parse("lane :test do
changelog_from_git_commits
end").runner.execute(:test)
# In test... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/testfairy_spec.rb | Ruby | mit | 41,450 | master | 4,658 | describe Fastlane do
describe Fastlane::FastFile do
describe "TestFairy Integration" do
it "raises an error if no parameters were given" do
expect do
Fastlane::FastFile.new.parse("lane :test do
testfairy()
end").runner.execute(:test)
end.to raise_error(Fastlan... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/commit_version_bump_action_spec.rb | Ruby | mit | 41,450 | master | 4,401 | describe Fastlane::Actions::CommitVersionBumpAction do
let(:action) { Fastlane::Actions::CommitVersionBumpAction }
describe 'settings_plists_from_param' do
it 'returns the param in an array if a String' do
settings_plists = action.settings_plists_from_param("About.plist")
expect(settings_plists).to... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/register_devices_spec.rb | Ruby | mit | 41,450 | master | 4,963 | describe Fastlane do
describe Fastlane::FastFile do
describe "Register Devices Action" do
let(:devices_file_with_platform) do
File.absolute_path('./fastlane/spec/fixtures/actions/register_devices/devices-list-with-platform.txt')
end
let(:devices_file_without_platform) do
File.abs... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/mailgun_spec.rb | Ruby | mit | 41,450 | master | 2,221 | describe Fastlane do
describe Fastlane::FastFile do
describe "Mailgun Action" do
before :each do
ENV['MAILGUN_SANDBOX_POSTMASTER'] = 'fakepostmaster@fakesandboxtest.mailgun.org'
ENV['MAILGUN_APIKEY'] = 'key-73827fakeapikey2329'
ENV['MAILGUN_APP_LINK'] = 'http://www.anapplink.com'
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/get_managed_play_store_publishing_rights_spec.rb | Ruby | mit | 41,450 | master | 2,649 | describe Fastlane do
describe Fastlane::FastFile do
describe "get_managed_play_store_publishing_rights" do
let(:json_key_path) { File.expand_path("./fastlane/spec/fixtures/google_play/google_play.json") }
let(:json_key_data) { File.open(json_key_path, 'rb').read }
let(:json_key_client_email) { J... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/verify_build_spec.rb | Ruby | mit | 41,450 | master | 13,159 | describe Fastlane do
describe Fastlane::FastFile do
describe "verify_build" do
let(:no_such_file) { "no-such-file.ipa" }
let(:not_an_ipa) { File.expand_path("./fastlane_core/spec/fixtures/ipas/not-an-ipa.ipa") }
let(:correctly_signed_ipa) { File.expand_path("./fastlane_core/spec/fixtures/ipas/ve... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/deploygate_spec.rb | Ruby | mit | 41,450 | master | 3,836 | describe Fastlane do
describe Fastlane::FastFile do
describe "DeployGate Integration" do
it "raises an error if no parameters were given" do
expect do
Fastlane::FastFile.new.parse("lane :test do
deploygate()
end").runner.execute(:test)
end.to raise_error(Fastl... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/restore_file_spec.rb | Ruby | mit | 41,450 | master | 1,791 | describe Fastlane do
describe Fastlane::FastFile do
describe "Backup file Integration" do
tmp_path = Dir.mktmpdir
let(:test_path) { "#{tmp_path}/tests/fastlane" }
let(:file_path) { "file.txt" }
let(:backup_path) { "#{file_path}.back" }
let(:file_content) { Time.now.to_s }
befo... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/update_app_group_identifiers_spec.rb | Ruby | mit | 41,450 | master | 3,414 | describe Fastlane do
describe Fastlane::FastFile do
describe "Update Info Plist Integration" do
let(:test_path) { "/tmp/fastlane/tests/fastlane" }
let(:entitlements_path) { "com.test.entitlements" }
let(:new_app_group) { 'group.com.enterprise.test' }
before do
# Set up example inf... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/clipboard_spec.rb | Ruby | mit | 41,450 | master | 887 | describe Fastlane do
describe Fastlane::FastFile do
describe "Clipboard Integration" do
if FastlaneCore::Helper.mac?
it "properly stores the value in the clipboard" do
str = "Some value: #{Time.now.to_i}"
value = Fastlane::FastFile.new.parse("lane :test do
clipboard(... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/verify_pod_keys_spec.rb | Ruby | mit | 41,450 | master | 1,412 | describe Fastlane do
describe Fastlane::FastFile do
describe "CocoaPods Keys Verification" do
let(:key) { "Key" }
let(:target) { "Target" }
before(:each) do
options = { "target" => :target, "keys" => [:key] }
allow(Fastlane::Actions::VerifyPodKeysAction).to receive(:plugin_optio... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/create_app_on_managed_play_store_spec.rb | Ruby | mit | 41,450 | master | 4,719 | describe Fastlane do
describe Fastlane::FastFile do
describe "create_app_on_managed_play_store" do
let(:json_key_path) { File.expand_path("./fastlane/spec/fixtures/google_play/google_play.json") }
let(:json_key_data) { File.open(json_key_path, 'rb').read }
let(:mock_client) { Object.new }
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/nexus_upload_spec.rb | Ruby | mit | 41,450 | master | 12,017 | describe Fastlane do
describe Fastlane::FastFile do
describe "Nexus Upload integration" do
it "sets verbosity correctly" do
expect(Fastlane::Actions::NexusUploadAction.verbose(verbose: true)).to eq("--verbose")
expect(Fastlane::Actions::NexusUploadAction.verbose(verbose: false)).to eq("--sil... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/notarize_spec.rb | Ruby | mit | 41,450 | master | 5,846 | describe Fastlane do
describe Fastlane::FastFile do
describe "notarize" do
let(:success_submit_response) do
{
'status': 'Accepted',
'id': '1111-2222-3333-4444'
}.to_json
end
let(:invalid_submit_response) do
{
'status': 'Invalid',
'statu... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/git_submodule_update_spec.rb | Ruby | mit | 41,450 | master | 1,356 | describe Fastlane do
describe Fastlane::FastFile do
describe "git_submodule_update" do
it "runs git submodule update without options by default" do
result = Fastlane::FastFile.new.parse("lane :test do
git_submodule_update
end").runner.execute(:test)
expect(result).to e... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/verify_xcode_spec.rb | Ruby | mit | 41,450 | master | 2,579 | describe Fastlane::Actions::VerifyXcodeAction do
describe 'codesign verification' do
it "reports success for AppStore codesign details" do
fixture_data = File.read('./fastlane/spec/fixtures/verify_xcode/xcode_codesign_appstore.txt')
allow(FastlaneCore::UI).to receive(:message)
expect(Fastlane::... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/trainer_spec.rb | Ruby | mit | 41,450 | master | 1,284 | describe Fastlane do
describe Fastlane::FastFile do
describe "Trainer Integration" do
context ":fail_build" do
it "does not raise an error if tests fail and fail_build is false", requires_xcode: true do
expect do
Fastlane::FastFile.new.parse("lane :parse_test_result do
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/xcodebuild_spec.rb | Ruby | mit | 41,450 | master | 28,103 | describe Fastlane do
describe Fastlane::FastFile do
build_log_path = File.expand_path("#{FastlaneCore::Helper.buildlog_path}/fastlane/xcbuild/#{Time.now.strftime('%F')}/#{Process.pid}/xcodebuild.log")
describe "Xcodebuild Integration" do
before :each do
Fastlane::Actions.lane_context.delete(:IP... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/commit_github_file_spec.rb | Ruby | mit | 41,450 | master | 1,852 | describe Fastlane do
describe Fastlane::FastFile do
describe "commit_github_file" do
let(:response_body) { File.read("./fastlane/spec/fixtures/requests/github_create_file_response.json") }
context 'successful' do
before do
stub_request(:put, "https://api.github.com/repos/fastlane/fa... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/setup_jenkins_spec.rb | Ruby | mit | 41,450 | master | 8,934 | describe Fastlane do
describe Fastlane::FastFile do
describe "Setup Jenkins Integration" do
before :each do
# Clean all used environment variables
Fastlane::Actions::SetupJenkinsAction::USED_ENV_NAMES + Fastlane::Actions::SetupJenkinsAction.available_options.map(&:env_name).each do |key|
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/sonar_spec.rb | Ruby | mit | 41,450 | master | 3,280 | describe Fastlane do
describe Fastlane::FastFile do
describe "Sonar Integration" do
let(:test_path) { "/tmp/fastlane/tests/fastlane" }
let(:sonar_project_path) { "sonar-project.properties" }
before do
# Set up example sonar-project.properties file
FileUtils.mkdir_p(test_path)
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/import_certificate_spec.rb | Ruby | mit | 41,450 | master | 6,170 | describe Fastlane do
describe Fastlane::FastFile do
describe "Import certificate Integration" do
before(:each) do
allow(FastlaneCore::Helper).to receive(:backticks).with('security -h | grep set-key-partition-list', print: false).and_return(' set-key-partition-list Set the partition ... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/make_changelog_from_jenkins_spec.rb | Ruby | mit | 41,450 | master | 2,147 | describe Fastlane do
describe Fastlane::FastFile do
describe "make_jenkins_changelog" do
before do
ENV['BUILD_URL'] = "https://jenkinsurl.com/JOB/"
end
after do
ENV['BUILD_URL'] = nil
end
it "returns the fallback if it wasn't able to communicate with the server" do
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/lane_context_spec.rb | Ruby | mit | 41,450 | master | 389 | describe Fastlane do
describe Fastlane::FastFile do
describe "Lane Context Quick Access" do
it "allows you easily access the lane context" do
result = Fastlane::FastFile.new.parse("lane :my_lane_name do
lane_context[SharedValues::LANE_NAME]
end").runner.execute(:my_lane_name)
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/setup_ci_spec.rb | Ruby | mit | 41,450 | master | 8,735 | describe Fastlane do
describe Fastlane::Actions::SetupCiAction do
describe "#run" do
context "when it should run" do
before do
stub_const("ENV", { "CI" => "anything" })
allow(Fastlane::Actions::CreateKeychainAction).to receive(:run).and_return(nil)
end
describe "... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/git_pull_spec.rb | Ruby | mit | 41,450 | master | 932 | describe Fastlane do
describe Fastlane::FastFile do
describe "Git Pull Action" do
it "runs git pull and git fetch with tags by default" do
result = Fastlane::FastFile.new.parse("lane :test do
git_pull
end").runner.execute(:test)
expect(result).to eq("git pull && git fe... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/ensure_git_status_clean_spec.rb | Ruby | mit | 41,450 | master | 9,139 | describe Fastlane do
describe Fastlane::FastFile do
describe "ensure_git_status_clean" do
before :each do
allow(FastlaneCore::FastlaneFolder).to receive(:path).and_return(nil)
allow(FastlaneCore::UI).to receive(:success).with("Driving the lane 'test' 🚀")
end
context "when git s... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/team_id_spec.rb | Ruby | mit | 41,450 | master | 757 | describe Fastlane do
describe Fastlane::FastFile do
describe "Team ID Action" do
it "works as expected" do
new_val = "abcdef"
Fastlane::FastFile.new.parse("lane :test do
team_id '#{new_val}'
end").runner.execute(:test)
[:CERT_TEAM_ID, :SIGH_TEAM_ID, :PEM_TEAM_ID, :... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/cocoapods_spec.rb | Ruby | mit | 41,450 | master | 9,262 | describe Fastlane do
describe Fastlane::FastFile do
describe "Cocoapods Integration" do
before :each do
allow(FastlaneCore::FastlaneFolder).to receive(:path).and_return(nil)
end
describe "#pod_version_at_least" do
describe "pod version 1.6" do
let(:params) { {} }
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/automatic_code_signing_spec.rb | Ruby | mit | 41,450 | master | 15,161 | require "xcodeproj"
# 771D79501D9E69C900D840FA = demo
# 77C503031DD3175E00AC8FF0 = today
describe Fastlane do
describe "Automatic Code Signing" do
before :each do
allow(FastlaneCore::FastlaneFolder).to receive(:path).and_return(nil)
end
it "enable_automatic_code_signing" do
allow(UI).to recei... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/import_spec.rb | Ruby | mit | 41,450 | master | 1,753 | describe Fastlane do
describe Fastlane::FastFile do
describe "import" do
it "allows the user to import a separate Fastfile" do
ff = Fastlane::FastFile.new('./fastlane/spec/fixtures/fastfiles/ImportFastfile')
expect(ff.runner.execute(:main_lane)).to eq('such main') # from the original Fastfi... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/slack_spec.rb | Ruby | mit | 41,450 | master | 9,594 | require 'slack-notifier'
describe Fastlane::Actions do
describe Fastlane::Actions::SlackAction do
describe Fastlane::Actions::SlackAction::Runner do
subject { Fastlane::Actions::SlackAction::Runner.new('https://127.0.0.1') }
it "trims long messages to show the bottom of the messages" do
long... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/reset_git_repo_spec.rb | Ruby | mit | 41,450 | master | 844 | describe Fastlane do
describe Fastlane::FastFile do
describe "reset_git_repo" do
it "works as expected inside a Fastfile" do
paths = Fastlane::FastFile.new.parse("lane :test do
reset_git_repo(force: true, files: ['.'])
end").runner.execute(:test)
expect(paths).to eq(['.'])... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/artifactory_spec.rb | Ruby | mit | 41,450 | master | 1,866 | describe Fastlane do
describe Fastlane::FastFile do
describe "artifactory" do
it "Call the artifactory plugin with 'username' and 'password' " do
result = Fastlane::FastFile.new.parse("lane :test do
artifactory(username:'username', password: 'password', endpoint: 'artifactory.example.com... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/ensure_env_vars_spec.rb | Ruby | mit | 41,450 | master | 3,357 | describe Fastlane do
describe Fastlane::FastFile do
describe 'ensure_env_vars' do
context 'when param is valid' do
before :each do
allow(FastlaneCore::UI).to receive(:success).with('Driving the lane \'test\' 🚀')
end
context 'and env var is set' do
before :each d... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/pod_push_spec.rb | Ruby | mit | 41,450 | master | 5,444 | describe Fastlane do
describe Fastlane::FastFile do
describe "Pod Push action" do
before :each do
allow(FastlaneCore::FastlaneFolder).to receive(:path).and_return(nil)
end
it "generates the correct pod push command with no parameters" do
result = Fastlane::FastFile.new.parse("la... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/download_universal_apk_from_google_play_spec.rb | Ruby | mit | 41,450 | master | 7,855 | describe Fastlane do
describe Fastlane::FastFile do
describe "download_universal_apk_from_google_play" do
let(:client_stub) { instance_double(Supply::Client) }
let(:package_name) { 'com.fastlane.myapp' }
let(:version_code) { 1337 }
let(:json_key_path) { File.expand_path("./fastlane/spec/fi... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/opt_out_usage_spec.rb | Ruby | mit | 41,450 | master | 317 | describe Fastlane do
describe Fastlane::FastFile do
describe "Opt Out Usage" do
it "works as expected" do
Fastlane::FastFile.new.parse("lane :test do
opt_out_usage
end").runner.execute(:test)
expect(ENV['FASTLANE_OPT_OUT_USAGE']).to eq("YES")
end
end
end
end |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/get_version_number_action_spec.rb | Ruby | mit | 41,450 | master | 11,485 | describe Fastlane do
describe Fastlane::FastFile do
describe "Get Version Number Integration" do
require 'shellwords'
xcodeproj_dir = File.absolute_path("./fastlane/spec/fixtures/actions/get_version_number/")
xcodeproj_filename = "get_version_number.xcodeproj"
it "gets the correct versio... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/hg_add_tag_spec.rb | Ruby | mit | 41,450 | master | 409 | describe Fastlane do
describe Fastlane::FastFile do
describe "Mercurial Add Tag Action" do
it "allows you to specify your own tag" do
tag = '2.0.0'
result = Fastlane::FastFile.new.parse("lane :test do
hg_add_tag ({
tag: '#{tag}',
})
end").runner.execu... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/set_changelog_spec.rb | Ruby | mit | 41,450 | master | 1,508 | describe Fastlane do
describe Fastlane::FastFile do
describe "set_changelog" do
context 'with invalid platform' do
let(:invalidPlatform_lane) { "lane :test do set_changelog(app_identifier: 'x.y.z', platform: 'whatever', changelog: 'custom changelog', username: 'name@example.com') end" }
it ... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/update_plist_spec.rb | Ruby | mit | 41,450 | master | 2,433 | describe Fastlane do
describe Fastlane::FastFile do
describe "Update Plist Integration" do
let(:test_path) { "/tmp/fastlane/tests/fastlane" }
let(:fixtures_path) { "./fastlane/spec/fixtures/xcodeproj" }
let(:proj_file) { "bundle.xcodeproj" }
let(:plist_path) { "Info.plist" }
let(:app... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/get_build_number_repository_spec.rb | Ruby | mit | 41,450 | master | 4,092 | describe Fastlane do
describe Fastlane::FastFile do
context "SVN repository" do
before do
expect(Fastlane::Actions::GetBuildNumberRepositoryAction).to receive(:is_svn?).and_return(true)
allow(Fastlane::Actions::GetBuildNumberRepositoryAction).to receive(:is_git_svn?).and_return(false)
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/hg_push_spec.rb | Ruby | mit | 41,450 | master | 672 | describe Fastlane do
describe Fastlane::FastFile do
describe "Mercurial Push to Remote Action" do
it "works without passing any options" do
result = Fastlane::FastFile.new.parse("lane :test do
hg_push
end").runner.execute(:test)
expect(result).to include("hg push")
e... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/set_github_release_spec.rb | Ruby | mit | 41,450 | master | 8,188 | describe Fastlane do
describe Fastlane::FastFile do
describe "set_github_release" do
describe "with api_token" do
it "sends and receives the right content from GitHub" do
stub_request(:post, "https://api.github.com/repos/czechboy0/czechboy0.github.io/releases").
with(body: "{\"... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/run_tests_spec.rb | Ruby | mit | 41,450 | master | 2,152 | describe Fastlane do
describe Fastlane::FastFile do
describe "Scan Integration" do
context ":fail_build" do
it "raises an error if build/compile error and fail_build is true" do
allow(Scan).to receive(:config=).and_return(nil)
allow_any_instance_of(Scan::Manager).to receive(:work... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/appaloosa_spec.rb | Ruby | mit | 41,450 | master | 6,561 | describe Fastlane do
describe Fastlane::FastFile do
APPALOOSA_SERVER = Fastlane::Actions::AppaloosaAction::APPALOOSA_SERVER
describe 'Appaloosa Integration' do
before :each do
allow(FastlaneCore::FastlaneFolder).to receive(:path).and_return(nil)
end
let(:appaloosa_lane) do
"... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/update_fastlane_spec.rb | Ruby | mit | 41,450 | master | 5,344 | describe Fastlane do
describe Fastlane::FastFile do
describe "update_fastlane" do
let(:mock_updater) { double("mock_updater") }
let(:mock_cleanup) { double("mock_cleanup") }
let(:mock_instance) do
{
update: mock_updater,
cleanup: mock_cleanup
}
end
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/git_add_spec.rb | Ruby | mit | 41,450 | master | 4,421 | describe Fastlane do
describe Fastlane::FastFile do
describe "git_add" do
before do
allow(File).to receive(:exist?).with(anything).and_return(true)
end
context "as string" do
let(:path) { "myfile.txt" }
it "executes the correct git command" do
allow(Fastlane::... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/team_name_spec.rb | Ruby | mit | 41,450 | master | 716 | describe Fastlane do
describe Fastlane::FastFile do
describe "Team Name Action" do
it "works as expected" do
new_val = "abcdef"
Fastlane::FastFile.new.parse("lane :test do
team_name '#{new_val}'
end").runner.execute(:test)
[:FASTLANE_TEAM_NAME, :PRODUCE_TEAM_NAME].... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/flock_spec.rb | Ruby | mit | 41,450 | master | 2,217 | describe Fastlane do
describe Fastlane::FastFile do
describe "Flock Action" do
FLOCK_BASE_URL = Fastlane::Actions::FlockAction::BASE_URL
def run_flock(**arguments)
parsed_arguments = Fastlane::ConfigurationHelper.parse(
Fastlane::Actions::FlockAction, arguments
)
Fa... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/update_project_provisioning_spec.rb | Ruby | mit | 41,450 | master | 4,943 | describe Fastlane do
describe Fastlane::FastFile do
describe "Update Project Provisioning" do
let(:fixtures_path) { "./fastlane/spec/fixtures" }
let(:xcodeproj) { File.absolute_path(File.join(fixtures_path, 'xcodeproj', 'bundle.xcodeproj')) }
let(:profile_path) { File.absolute_path(File.join(fix... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/pem_spec.rb | Ruby | mit | 41,450 | master | 765 | describe Fastlane do
describe Fastlane::FastFile do
describe "PEM Integration" do
it "works with no parameters" do
result = Fastlane::FastFile.new.parse("lane :test do
pem
end").runner.execute(:test)
end
it "support a success callback block" do
temp_path = "/tm... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/appstore_spec.rb | Ruby | mit | 41,450 | master | 354 | describe Fastlane do
describe Fastlane::FastFile do
describe "AppStore Action" do
it "is an alias for the deliver action" do
result = Fastlane::FastFile.new.parse("lane :test do
appstore(skip_metadata: true)
end").runner.execute(:test)
expect(result[:skip_metadata]).to eq(... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/ipa_spec.rb | Ruby | mit | 41,450 | master | 5,024 | describe Fastlane do
describe Fastlane::FastFile do
describe "IPA Integration" do
it "works with default setting" do
result = Fastlane::FastFile.new.parse("lane :test do
ipa
end").runner.execute(:test)
expect(result).to eq([])
end
it "works with object argumen... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/danger_spec.rb | Ruby | mit | 41,450 | master | 5,011 | describe Fastlane do
describe Fastlane::FastFile do
describe "danger integration" do
before :each do
allow(FastlaneCore::FastlaneFolder).to receive(:path).and_return(nil)
end
it "default use case" do
result = Fastlane::FastFile.new.parse("lane :test do
danger
e... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/git_branch_spec.rb | Ruby | mit | 41,450 | master | 1,991 | describe Fastlane::Actions::GitBranchAction do
describe "CI set ENV values" do
Fastlane::Actions::SharedValues::GIT_BRANCH_ENV_VARS.each do |env_var|
it "can control the output of the action with #{env_var}" do
FastlaneSpec::Env.with_env_values(env_var => "#{env_var}-branch-name") do
resul... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/get_build_number_action_spec.rb | Ruby | mit | 41,450 | master | 828 | describe Fastlane do
describe Fastlane::FastFile do
describe "Get Build Number Integration" do
require 'shellwords'
it "gets the build number of the Xcode project" do
Fastlane::FastFile.new.parse("lane :test do
get_build_number(xcodeproj: '.xcproject')
end").runner.execute(:... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/copy_artifacts_spec.rb | Ruby | mit | 41,450 | master | 4,097 | describe Fastlane do
describe Fastlane::FastFile do
describe "Copy Artifacts Integration" do
before do
# Create base test directory
@tmp_path = Dir.mktmpdir
FileUtils.mkdir_p("#{@tmp_path}/source")
end
it "Copies a file to target path" do
FileUtils.touch("#{@tmp_... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/backup_xcarchive_spec.rb | Ruby | mit | 41,450 | master | 4,003 | describe Fastlane do
describe Fastlane::FastFile do
describe "Backup xcarchive Integration" do
let(:tmp_path) { Dir.mktmpdir }
let(:source_path) { "#{tmp_path}/fastlane" }
let(:destination_path) { "#{source_path}/dest" }
let(:xcarchive_file) { "fake.xcarchive" }
let(:zip_file) { "fak... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/push_git_to_remote_spec.rb | Ruby | mit | 41,450 | master | 830 | describe Fastlane do
describe Fastlane::FastFile do
describe "Push To Git Remote Action" do
it "works without passing any options" do
result = Fastlane::FastFile.new.parse("lane :test do
push_to_git_remote
end").runner.execute(:test)
expect(result).to include("git push ori... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/gcovr_spec.rb | Ruby | mit | 41,450 | master | 1,977 | describe Fastlane do
describe Fastlane::FastFile do
describe "Gcovr Integration" do
let(:file_utils) { class_double("FileUtils").as_stubbed_const }
it "works with all parameters" do
result = Fastlane::FastFile.new.parse("lane :test do
gcovr({
object_directory: 'object_di... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/app_store_connect_api_key_spec.rb | Ruby | mit | 41,450 | master | 5,266 | describe Fastlane do
describe Fastlane::FastFile do
describe "App Store Connect API Key" do
let(:fake_api_key_p8_path) { File.absolute_path("./spaceship/spec/connect_api/fixtures/asc_key.p8") }
let(:fake_api_key_json_path) { "./spaceship/spec/connect_api/fixtures/asc_key.json" }
let(:fake_api_ke... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/import_from_git_spec.rb | Ruby | mit | 41,450 | master | 12,435 | describe Fastlane do
describe Fastlane::FastFile do
describe "import_from_git" do
it "raises an exception when no path is given" do
expect do
Fastlane::FastFile.new.parse("lane :test do
import_from_git
end").runner.execute(:test)
end.to raise_error("Please pas... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/hg_commit_version_bump_spec.rb | Ruby | mit | 41,450 | master | 1,961 | describe Fastlane do
describe Fastlane::FastFile do
describe "Mercurial Commit Version Bump Action" do
it "passes when modified files are a subset of expected changed files" do
dirty_files = "file1,file2"
expected_files = "file1,file2"
result = Fastlane::FastFile.new.parse("lane :te... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/create_keychain_spec.rb | Ruby | mit | 41,450 | master | 9,942 | describe Fastlane do
describe Fastlane::FastFile do
describe "Create keychain Integration" do
context "with name and password options" do
it "works when keychain doesn't exist" do
allow(Fastlane::Actions::CreateKeychainAction).to receive(:list_keychains).and_return(
# first tim... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/update_info_plist_spec.rb | Ruby | mit | 41,450 | master | 5,267 | describe Fastlane do
describe Fastlane::FastFile do
describe "Update Info Plist Integration" do
let(:test_path) { "/tmp/fastlane/tests/fastlane" }
let(:fixtures_path) { "./fastlane/spec/fixtures/xcodeproj" }
let(:proj_file) { "bundle.xcodeproj" }
let(:xcodeproj) { File.join(test_path, proj... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/setup_travis_spec.rb | Ruby | mit | 41,450 | master | 2,405 | describe Fastlane do
describe Fastlane::FastFile do
describe "Setup Travis Integration" do
let(:tmp_keychain_name) { "fastlane_tmp_keychain" }
def check_keychain_nil
expect(ENV["MATCH_KEYCHAIN_NAME"]).to be_nil
expect(ENV["MATCH_KEYCHAIN_PASSWORD"]).to be_nil
expect(ENV["MATCH... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/push_git_tags_spec.rb | Ruby | mit | 41,450 | master | 1,413 | describe Fastlane do
describe Fastlane::FastFile do
describe "push_git_tags" do
it "uses the correct default command" do
result = Fastlane::FastFile.new.parse("lane :test do
push_git_tags
end").runner.execute(:test)
expect(result).to eq("git push origin --tags")
end
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/create_xcframework_spec.rb | Ruby | mit | 41,450 | master | 17,743 | describe Fastlane do
describe Fastlane::FastFile do
describe "Create XCFramework Action" do
before(:each) do
allow(File).to receive(:exist?).and_call_original
allow(File).to receive(:directory?).and_call_original
end
it "requires to either provide :frameworks, :frameworks_with_d... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/get_github_release_spec.rb | Ruby | mit | 41,450 | master | 1,104 | describe Fastlane do
describe Fastlane::FastFile do
describe "get_github_release" do
before do
stub_request(:get, "https://api.github.com/repos/fastlane/fastlane/releases").
with(headers: { 'Host' => 'api.github.com:443' }).
to_return(status: 200, body: File.read("./fastlane/spec... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/rsync_spec.rb | Ruby | mit | 41,450 | master | 372 | describe Fastlane do
describe Fastlane::FastFile do
describe "rsync" do
it "generates a valid command" do
result = Fastlane::FastFile.new.parse("lane :test do
rsync(source: '/tmp/1.txt', destination: '/tmp/2.txt')
end").runner.execute(:test)
expect(result).to eq("rsync -av ... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/puts_spec.rb | Ruby | mit | 41,450 | master | 401 | describe Fastlane do
describe Fastlane::FastFile do
describe "puts" do
it "works" do
Fastlane::FastFile.new.parse("lane :test do
puts 'hi'
end").runner.execute(:test)
end
it "works in Swift" do
Fastlane::FastFile.new.parse("lane :test do
puts(message: ... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/unlock_keychain_spec.rb | Ruby | mit | 41,450 | master | 2,744 | describe Fastlane do
describe Fastlane::FastFile do
describe "Unlock keychain Integration" do
# do not use lazy init here
# this will prevent race conditions during parallel runs
let!(:keychain_path) { Tempfile.new('foo').path }
it "works with path and password and existing keychain" do
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/s3_spec.rb | Ruby | mit | 41,450 | master | 404 | describe Fastlane do
describe Fastlane::FastFile do
describe "S3 Integration" do
it "raise an error to use S3 plugin" do
expect do
Fastlane::FastFile.new.parse("lane :test do
s3({})
end").runner.execute(:test)
end.to raise_error("Please use the `aws_s3` plugin... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/add_extra_platforms_spec.rb | Ruby | mit | 41,450 | master | 784 | describe Fastlane do
describe Fastlane::FastFile do
describe "add_extra_platforms" do
before(:each) do
allow(Fastlane::SupportedPlatforms).to receive(:all).and_return([:ios, :macos, :android])
end
it "updates the extra supported platforms" do
expect(UI).to receive(:verbose).with... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/xctool_action_spec.rb | Ruby | mit | 41,450 | master | 1,110 | describe Fastlane do
describe Fastlane::FastFile do
describe "xctool Integration" do
it "works with no parameters" do
result = Fastlane::FastFile.new.parse("lane :test do
xctool
end").runner.execute(:test)
expect(result).to eq("xctool ")
end
it "works with def... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/push_to_git_remote_spec.rb | Ruby | mit | 41,450 | master | 7,400 | describe Fastlane do
describe Fastlane::FastFile do
describe "Git Push to Remote Action" do
before(:each) do
allow(Fastlane::Actions).to receive(:sh)
.with("git rev-parse --abbrev-ref HEAD", log: false)
.and_return(nil)
allow(Fastlane::Actions).to receive(:git_branch).and... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/say_spec.rb | Ruby | mit | 41,450 | master | 3,275 | describe Fastlane do
describe Fastlane::FastFile do
describe "Say Integration" do
describe "saying" do
it "works with array" do
expect(Fastlane::Actions).to receive(:sh)
.with('say \'Hi Felix Good Job\'')
.and_call_original
result = Fastlane::FastFile.new... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/setup_circle_ci_spec.rb | Ruby | mit | 41,450 | master | 2,571 | describe Fastlane do
describe Fastlane::Actions::SetupCircleCiAction do
describe "Setup CircleCi Integration" do
let(:tmp_keychain_name) { "fastlane_tmp_keychain" }
def check_keychain_nil
expect(ENV["MATCH_KEYCHAIN_NAME"]).to be_nil
expect(ENV["MATCH_KEYCHAIN_PASSWORD"]).to be_nil
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/update_keychain_access_groups_spec.rb | Ruby | mit | 41,450 | master | 3,511 | describe Fastlane do
describe Fastlane::FastFile do
describe "Update Info Plist Integration" do
let(:test_path) { "/tmp/fastlane/tests/fastlane" }
let(:entitlements_path) { "com.test.entitlements" }
let(:new_keychain_access_groups) { 'keychain.access.groups.test' }
before do
# Set... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/carthage_spec.rb | Ruby | mit | 41,450 | master | 24,893 | describe Fastlane do
describe Fastlane::FastFile do
describe "Carthage Integration" do
it "raises an error if command is invalid" do
expect do
Fastlane::FastFile.new.parse("lane :test do
carthage(
command: 'thisistest'
)
end").runner.execute(... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/install_on_device_spec.rb | Ruby | mit | 41,450 | master | 678 | describe Fastlane do
describe Fastlane::FastFile do
describe "install_on_device" do
it "generates a valid command" do
result = Fastlane::FastFile.new.parse("lane :test do
install_on_device(ipa: 'demo.ipa')
end").runner.execute(:test)
expect(result).to eq("ios-deploy --bundl... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/increment_version_number_action_spec.rb | Ruby | mit | 41,450 | master | 6,418 | describe Fastlane do
describe Fastlane::FastFile do
describe "Increment Version Number Integration" do
{
"1" => "2",
"1.1" => "1.2",
"1.1.1" => "1.1.2"
}.each do |from_version, to_version|
it "increments all targets' version number from #{from_version} to #{to_ver... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/onesignal_spec.rb | Ruby | mit | 41,450 | master | 2,657 | describe Fastlane do
describe Fastlane::FastFile do
describe 'onesignal' do
let(:app_id) { 'id123' }
let(:app_name) { 'My App' }
before :each do
stub_const('ENV', { 'ONE_SIGNAL_AUTH_KEY' => 'auth-123' })
end
context 'when params are valid' do
before :each do
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.