Browse Source

Arrange the structure and add Gemfile

鄭中嘉 4 years ago
parent
commit
6a1c841c78

+ 13 - 0
Gemfile

@@ -0,0 +1,13 @@
+# frozen_string_literal: true
+
+source "https://rubygems.org"
+
+git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
+
+# gem "rails"
+
+gem "rspec", "~> 3.9"
+
+gem "faraday", "~> 1.0"
+
+gem "json", "~> 2.3"

+ 32 - 0
Gemfile.lock

@@ -0,0 +1,32 @@
+GEM
+  remote: https://rubygems.org/
+  specs:
+    diff-lcs (1.3)
+    faraday (1.0.0)
+      multipart-post (>= 1.2, < 3)
+    json (2.3.0)
+    multipart-post (2.1.1)
+    rspec (3.9.0)
+      rspec-core (~> 3.9.0)
+      rspec-expectations (~> 3.9.0)
+      rspec-mocks (~> 3.9.0)
+    rspec-core (3.9.1)
+      rspec-support (~> 3.9.1)
+    rspec-expectations (3.9.0)
+      diff-lcs (>= 1.2.0, < 2.0)
+      rspec-support (~> 3.9.0)
+    rspec-mocks (3.9.1)
+      diff-lcs (>= 1.2.0, < 2.0)
+      rspec-support (~> 3.9.0)
+    rspec-support (3.9.2)
+
+PLATFORMS
+  ruby
+
+DEPENDENCIES
+  faraday (~> 1.0)
+  json (~> 2.3)
+  rspec (~> 3.9)
+
+BUNDLED WITH
+   2.1.4

+ 2 - 2
spec/support/sign_yourself_spec.rb

@@ -1,7 +1,7 @@
 require 'rspec'
 require 'selenium-webdriver'
-require_relative '../pageObjects/login_page'
-require_relative '../pageObjects/abstract_page'
+require_relative '../page_objects/login_page'
+require_relative '../page_objects/abstract_page'
 
 describe 'Testing sign_yourself' do
 

+ 1 - 1
spec/page_objects/abstract_page.rb

@@ -1,6 +1,6 @@
 require 'rspec'
 require 'selenium-webdriver'
-require './mattermost_notifier'
+require '../support/mattermost_notifier'
 require_relative './login_page'
 
 class AbstractPage

+ 1 - 1
spec/support/mattermost_notifier.rb

@@ -1,4 +1,4 @@
-require "./requester"
+require "../support/requester"
 require "time"