Skip to content

Commit

Permalink
All spec files require spec_helper
Browse files Browse the repository at this point in the history
  • Loading branch information
ganmacs committed Jun 18, 2018
1 parent 075a26f commit cb45027
Show file tree
Hide file tree
Showing 19 changed files with 19 additions and 18 deletions.
2 changes: 1 addition & 1 deletion src/ruby/spec/call_credentials_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

require 'grpc'
require 'spec_helper'

describe GRPC::Core::CallCredentials do
CallCredentials = GRPC::Core::CallCredentials
Expand Down
2 changes: 1 addition & 1 deletion src/ruby/spec/call_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

require 'grpc'
require 'spec_helper'

include GRPC::Core::StatusCodes

Expand Down
2 changes: 1 addition & 1 deletion src/ruby/spec/channel_credentials_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

require 'grpc'
require 'spec_helper'

describe GRPC::Core::ChannelCredentials do
ChannelCredentials = GRPC::Core::ChannelCredentials
Expand Down
2 changes: 1 addition & 1 deletion src/ruby/spec/channel_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

require 'grpc'
require 'spec_helper'

def load_test_certs
test_root = File.join(File.dirname(__FILE__), 'testdata')
Expand Down
2 changes: 1 addition & 1 deletion src/ruby/spec/client_auth_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

require 'grpc'
require 'spec_helper'

def create_channel_creds
test_root = File.join(File.dirname(__FILE__), 'testdata')
Expand Down
2 changes: 1 addition & 1 deletion src/ruby/spec/client_server_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

require 'grpc'
require 'spec_helper'

include GRPC::Core

Expand Down
2 changes: 1 addition & 1 deletion src/ruby/spec/compression_options_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

require 'grpc'
require 'spec_helper'

describe GRPC::Core::CompressionOptions do
# Note these constants should be updated
Expand Down
2 changes: 1 addition & 1 deletion src/ruby/spec/error_sanity_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

require 'grpc'
require 'spec_helper'

StatusCodes = GRPC::Core::StatusCodes

Expand Down
2 changes: 1 addition & 1 deletion src/ruby/spec/generic/client_stub_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

require 'grpc'
require 'spec_helper'

Thread.abort_on_exception = true

Expand Down
2 changes: 1 addition & 1 deletion src/ruby/spec/generic/rpc_desc_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

require 'grpc'
require 'spec_helper'
require 'grpc/generic/rpc_desc'

describe GRPC::RpcDesc do
Expand Down
2 changes: 1 addition & 1 deletion src/ruby/spec/generic/rpc_server_pool_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

require 'grpc'
require 'spec_helper'

Thread.abort_on_exception = true

Expand Down
2 changes: 1 addition & 1 deletion src/ruby/spec/generic/service_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

require 'grpc'
require 'spec_helper'
require 'grpc/generic/rpc_desc'
require 'grpc/generic/service'

Expand Down
2 changes: 1 addition & 1 deletion src/ruby/spec/google_rpc_status_utils_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

require 'grpc'
require 'spec_helper'
require_relative '../lib/grpc/google_rpc_status_utils'
require_relative '../pb/src/proto/grpc/testing/messages_pb'
require_relative '../pb/src/proto/grpc/testing/messages_pb'
Expand Down
1 change: 1 addition & 0 deletions src/ruby/spec/pb/duplicate/codegen_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

require 'spec_helper'
require 'open3'
require 'tmpdir'

Expand Down
2 changes: 1 addition & 1 deletion src/ruby/spec/pb/health/checker_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

require 'grpc'
require 'spec_helper'
require 'grpc/health/v1/health_pb'
require 'grpc/health/checker'
require 'open3'
Expand Down
2 changes: 1 addition & 1 deletion src/ruby/spec/server_credentials_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

require 'grpc'
require 'spec_helper'

def load_test_certs
test_root = File.join(File.dirname(__FILE__), 'testdata')
Expand Down
2 changes: 1 addition & 1 deletion src/ruby/spec/server_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

require 'grpc'
require 'spec_helper'

def load_test_certs
test_root = File.join(File.dirname(__FILE__), 'testdata')
Expand Down
2 changes: 1 addition & 1 deletion src/ruby/spec/support/services.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.

# Test stubs for various scenarios
require 'grpc'
require 'spec_helper'

# A test message
class EchoMsg
Expand Down
2 changes: 1 addition & 1 deletion src/ruby/spec/time_consts_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

require 'grpc'
require 'spec_helper'

TimeConsts = GRPC::Core::TimeConsts

Expand Down

0 comments on commit cb45027

Please sign in to comment.