search for: test_a

Displaying 5 results from an estimated 5 matches for "test_a".

Did you mean: test_
2007 Mar 30
7
problem with using any_instance
Hey all, I have a question with using mocha in my tests. In the same test file, I have two tests, <code> def test_a klass.any_instance.stubs(:method_name).returns("something") klass.new.method_name ... end def test_b ... klass.new.method_name ... end </code> where klass is some class when the tests run, test _a passes, but test_b had an error like this: test_b NoMethodError: undef...
2018 Nov 20
3
Samba not respecting directory acls inside a share
...ted to AD as a member with some share: [refb] path = /samba/refb browseable = no valid users = +"AM\refb_users" writeable = yes force user = AM\qui force group = AM\refb_users All the samba users and groups come from AD through nss_winbind. Inside /samba/refb/ I created a sub directory test_a and set the owner (in Solaris via chown) to AM\refba_users. I also set chmod 770. My assumption would be that anyone that is a member of group refb_users should be able to access the share and those who are also members of the group refba_users should be able to read and write to the directory test...
2006 Sep 25
3
Problem stubbing instances referred to by constants
...e is pointed to by a constant. The simplest failing test is something like (add as a new file in mocha/test).. #--code-- require File.join(File.dirname(__FILE__), "test_helper") require ''stubba'' class WemStubbaTest < Test::Unit::TestCase Arr = [1, 2, 3] def test_a Arr.stubs(:size).returns(6) assert_equal 6, Arr.size end def test_b assert_equal 3, Arr.size #=> Failing test when both tests run consecutively end end #--/code-- I got as far as noticing that Stubba::InstanceMethod#unstub is ''intentionally empty''. This i...
2012 Mar 19
0
Reshape data frame with dcast and melt
...a_Points")) data_wide <- dcast(data, formula_wide) # Resort data formula_sort <- as.formula(paste("~", paste(ids, collapse="+"))) data_wide <- sort(data_wide, f = formula_sort) return(data_wide) } d <- data.frame( test_name = c(rep("Test_A", 6), rep("Test_B", 6)), group_name = c(rep("Group_C", 3), rep("Group_D", 3), rep("Group_C", 3), rep("Group_D", 3)), id = c("I1", "I2", "I3", "I4", "I5", "I6", &qu...
2017 Jan 20
0
Wine release 2.0-rc6
...S fails with InitializeSecurityContext failed: SEC_E_INVALID_TOKEN 41290 DirectShow applications: MP3 playback is broken if winegstreamer is disabled 42020 Tompi Jones fails creating user profile 42211 redefinition of typedef 'REFERENCE_TIME' 42228 bcrypt:bcrypt test regression (test_aes) 42229 advapi32:eventlog test regression (privilege issue in test_start_trace) 42243 3DMark11 installer crashes with access violation in Freetype because font data is released too early ---------------------------------------------------------------- Changes since 2.0-rc5: André Hentsche...